using System.Windows.Forms;
using Eplan.EplApi.Scripting;
public partial class frmButton : System.Windows.Forms.Form
{
private Button btnCancel;
private CheckBox chkCheckall;
private Label lblProject;
private Button btnCalc;
private ProgressBar pbr;
private Label lblProjctNM;
private Label lblCPUName;
private ComboBox cbxCPUName;
private Label label1;
private Label label2;
private Label label3;
private Label label4;
private Label label5;
#region Vom Windows Form-Designer generierter Code
///
/// Erforderliche Designervariable.
///
private System.ComponentModel.IContainer components = null;
///
/// Verwendete Ressourcen bereinigen.
///
/// True, wenn verwaltete Ressourcen
/// gelöscht werden sollen; andernfalls False.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
///
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor
/// geändert werden.
///
private void InitializeComponent()
{
this.btnCancel = new System.Windows.Forms.Button();
this.chkCheckall = new System.Windows.Forms.CheckBox();
this.lblProject = new System.Windows.Forms.Label();
this.btnCalc = new System.Windows.Forms.Button();
this.pbr = new System.Windows.Forms.ProgressBar();
this.lblProjctNM = new System.Windows.Forms.Label();
this.lblCPUName = new System.Windows.Forms.Label();
this.cbxCPUName = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(599, 238);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 0;
this.btnCancel.Text = "Abbrechen";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// chkCheckall
//
this.chkCheckall.AutoSize = true;
this.chkCheckall.Location = new System.Drawing.Point(13, 244);
this.chkCheckall.Name = "chkCheckall";
this.chkCheckall.Size = new System.Drawing.Size(98, 17);
this.chkCheckall.TabIndex = 4;
this.chkCheckall.Text = "Alle Berechnen";
this.chkCheckall.UseVisualStyleBackColor = true;
this.chkCheckall.Click += new System.EventHandler(this.CheckedChanged);
//
// lblProject
//
this.lblProject.AutoSize = true;
this.lblProject.Location = new System.Drawing.Point(89, 9);
this.lblProject.Name = "lblProject";
this.lblProject.Size = new System.Drawing.Size(66, 13);
this.lblProject.TabIndex = 5;
this.lblProject.Text = "Projektname";
//
// btnCalc
//
this.btnCalc.Location = new System.Drawing.Point(518, 238);
this.btnCalc.Name = "btnCalc";
this.btnCalc.Size = new System.Drawing.Size(75, 23);
this.btnCalc.TabIndex = 7;
this.btnCalc.Text = "Berrechnen";
this.btnCalc.UseVisualStyleBackColor = true;
this.btnCalc.Click += new System.EventHandler(this.btnCalc_Click);
//
// pbr
//
this.pbr.Location = new System.Drawing.Point(13, 209);
this.pbr.Name = "pbr";
this.pbr.Size = new System.Drawing.Size(661, 23);
this.pbr.TabIndex = 6;
//
// lblProjctNM
//
this.lblProjctNM.AutoSize = true;
this.lblProjctNM.Location = new System.Drawing.Point(12, 9);
this.lblProjctNM.Name = "lblProjctNM";
this.lblProjctNM.Size = new System.Drawing.Size(77, 13);
this.lblProjctNM.TabIndex = 8;
this.lblProjctNM.Text = "Projekt Name :";
//
// lblCPUName
//
this.lblCPUName.AutoSize = true;
this.lblCPUName.Location = new System.Drawing.Point(13, 26);
this.lblCPUName.Name = "lblCPUName";
this.lblCPUName.Size = new System.Drawing.Size(60, 13);
this.lblCPUName.TabIndex = 9;
this.lblCPUName.Text = "CPU Name";
//
// cbxCPUName
//
this.cbxCPUName.FormattingEnabled = true;
this.cbxCPUName.Location = new System.Drawing.Point(92, 26);
this.cbxCPUName.Name = "cbxCPUName";
this.cbxCPUName.Size = new System.Drawing.Size(121, 21);
this.cbxCPUName.TabIndex = 10;
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.Red;
this.label1.Location = new System.Drawing.Point(219, 29);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(172, 13);
this.label1.TabIndex = 11;
this.label1.Text = "(Auswahl aus \"20433 CPU-Name\")";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(16, 60);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(30, 13);
this.label2.TabIndex = 12;
this.label2.Text = "BMK";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(53, 59);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(55, 13);
this.label3.TabIndex = 13;
this.label3.Text = "Bestell-Nr.";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(192, 60);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(55, 13);
this.label4.TabIndex = 14;
this.label4.Text = "Bus-Strom";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(329, 58);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(34, 13);
this.label5.TabIndex = 15;
this.label5.Text = "Saldo";
//
// frmButton
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(686, 273);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.cbxCPUName);
this.Controls.Add(this.lblCPUName);
this.Controls.Add(this.lblProjctNM);
this.Controls.Add(this.btnCalc);
this.Controls.Add(this.pbr);
this.Controls.Add(this.lblProject);
this.Controls.Add(this.chkCheckall);
this.Controls.Add(this.btnCancel);
this.Name = "frmButton";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Berechnung K-Bus Strom";
this.Load += new System.EventHandler(this.frmButton_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
public frmButton()
{
InitializeComponent();
}
#endregion
[Start]
public void Function()
{
frmButton frm = new frmButton();
frm.ShowDialog();
return;
}
private void frmButton_Load(object sender, System.EventArgs e)
{
lblProject.Text = PathMap.SubstitutePath("$(PROJECTNAME)");
}
private void btnOk_Click(object sender, System.EventArgs e)
{
CommandLineInterpreter oCLI = new CommandLineInterpreter();
pbr.PerformStep();
pbr.PerformStep();
pbr.Value = 0;
this.Close();
return;
}
private void btnCancel_Click(object sender, System.EventArgs e)
{
this.Close();
return;
}
private void CheckedChanged(object sender, System.EventArgs e)
{
if (chkCheckall.Checked)
{
}
else
{
}
return;
}
private void btnCalc_Click(object sender, System.EventArgs e)
{
}
private void label1_Click(object sender, System.EventArgs e)
{
}
}