コード例 #1
0
        public UI()
        {
            InitializeComponent();

            albArg    = new Label[] { lbArg1, lbArg2, lbArg3, lbArg4, lbArg5, lbArg6, lbArg7, lbArg8, };
            aldoc     = new LabelledDataOwner[] { ldocArg1, ldocArg2, ldocArg3, ldocArg4, ldocArg5, ldocArg6, ldocArg7, ldocArg8, };
            arbFormat = new List <RadioButton>(new RadioButton[] { rbTemps, rbOld, rbNew, rbCallers });

            internalchg = true;
            try
            {
                foreach (LabelledDataOwner ldoc in aldoc)
                {
                    ldoc.Decimal           = pjse.Settings.PJSE.DecimalDOValue;
                    ldoc.UseInstancePicker = pjse.Settings.PJSE.InstancePickerAsText;
                }
            }
            finally { internalchg = false; }

            pjse.Settings.PJSE.DecimalDOValueChanged       += new EventHandler(PJSE_DecimalDOValueChanged);
            pjse.Settings.PJSE.InstancePickerAsTextChanged += new EventHandler(PJSE_InstancePickerAsTextChanged);
        }
コード例 #2
0
 /// <summary>
 /// Erforderliche Methode für die Designerunterstützung.
 /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UI));
     this.pnWiz0x0002        = new System.Windows.Forms.Panel();
     this.labelledDataOwner2 = new pjse.LabelledDataOwner();
     this.labelledDataOwner1 = new pjse.LabelledDataOwner();
     this.cbOperator         = new System.Windows.Forms.ComboBox();
     this.flowLayoutPanel1   = new System.Windows.Forms.FlowLayoutPanel();
     this.pnWiz0x0002.SuspendLayout();
     this.flowLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // pnWiz0x0002
     //
     resources.ApplyResources(this.pnWiz0x0002, "pnWiz0x0002");
     this.pnWiz0x0002.Controls.Add(this.flowLayoutPanel1);
     this.pnWiz0x0002.Name = "pnWiz0x0002";
     //
     // labelledDataOwner2
     //
     resources.ApplyResources(this.labelledDataOwner2, "labelledDataOwner2");
     this.labelledDataOwner2.DataOwner        = ((byte)(255));
     this.labelledDataOwner2.DataOwnerEnabled = true;
     this.labelledDataOwner2.FlagsFor         = this.labelledDataOwner1;
     this.labelledDataOwner2.Instruction      = null;
     this.labelledDataOwner2.LabelSize        = new System.Drawing.Size(35, 13);
     this.labelledDataOwner2.LabelVisible     = false;
     this.labelledDataOwner2.Name             = "labelledDataOwner2";
     this.labelledDataOwner2.UseFlagNames     = false;
     this.labelledDataOwner2.Value            = ((ushort)(0));
     //
     // labelledDataOwner1
     //
     resources.ApplyResources(this.labelledDataOwner1, "labelledDataOwner1");
     this.labelledDataOwner1.DataOwner                = ((byte)(255));
     this.labelledDataOwner1.DataOwnerEnabled         = true;
     this.labelledDataOwner1.DecimalVisible           = false;
     this.labelledDataOwner1.Instruction              = null;
     this.labelledDataOwner1.LabelSize                = new System.Drawing.Size(35, 13);
     this.labelledDataOwner1.LabelVisible             = false;
     this.labelledDataOwner1.Name                     = "labelledDataOwner1";
     this.labelledDataOwner1.UseFlagNames             = false;
     this.labelledDataOwner1.UseInstancePickerVisible = false;
     this.labelledDataOwner1.Value                    = ((ushort)(0));
     //
     // cbOperator
     //
     this.cbOperator.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     resources.ApplyResources(this.cbOperator, "cbOperator");
     this.cbOperator.Name = "cbOperator";
     this.cbOperator.SelectedIndexChanged += new System.EventHandler(this.cbOperator_SelectedIndexChanged);
     //
     // flowLayoutPanel1
     //
     resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
     this.flowLayoutPanel1.Controls.Add(this.labelledDataOwner1);
     this.flowLayoutPanel1.Controls.Add(this.cbOperator);
     this.flowLayoutPanel1.Controls.Add(this.labelledDataOwner2);
     this.flowLayoutPanel1.Name = "flowLayoutPanel1";
     //
     // UI
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.Controls.Add(this.pnWiz0x0002);
     this.Name = "UI";
     this.pnWiz0x0002.ResumeLayout(false);
     this.pnWiz0x0002.PerformLayout();
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UI));
     this.pnWiz0x001c       = new System.Windows.Forms.Panel();
     this.flpArgs           = new System.Windows.Forms.FlowLayoutPanel();
     this.ldocArg1          = new pjse.LabelledDataOwner();
     this.ldocArg2          = new pjse.LabelledDataOwner();
     this.ldocArg3          = new pjse.LabelledDataOwner();
     this.btnTreeName       = new System.Windows.Forms.Button();
     this.tbTree            = new System.Windows.Forms.TextBox();
     this.tfGlobal          = new System.Windows.Forms.CheckBox();
     this.tfParams          = new System.Windows.Forms.CheckBox();
     this.tfArgs            = new System.Windows.Forms.CheckBox();
     this.tfSemiGlobal      = new System.Windows.Forms.CheckBox();
     this.tfPrivate         = new System.Windows.Forms.CheckBox();
     this.cbRTBNType        = new System.Windows.Forms.ComboBox();
     this.cbScope           = new System.Windows.Forms.ComboBox();
     this.label3            = new System.Windows.Forms.Label();
     this.lbTreeName        = new System.Windows.Forms.Label();
     this.label2            = new System.Windows.Forms.Label();
     this.label4            = new System.Windows.Forms.Label();
     this.label8            = new System.Windows.Forms.Label();
     this.label1            = new System.Windows.Forms.Label();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.flowLayoutPanel2  = new System.Windows.Forms.FlowLayoutPanel();
     this.flowLayoutPanel3  = new System.Windows.Forms.FlowLayoutPanel();
     this.flowLayoutPanel4  = new System.Windows.Forms.FlowLayoutPanel();
     this.flowLayoutPanel6  = new System.Windows.Forms.FlowLayoutPanel();
     this.pnWiz0x001c.SuspendLayout();
     this.flpArgs.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.flowLayoutPanel2.SuspendLayout();
     this.flowLayoutPanel3.SuspendLayout();
     this.flowLayoutPanel4.SuspendLayout();
     this.flowLayoutPanel6.SuspendLayout();
     this.SuspendLayout();
     //
     // pnWiz0x001c
     //
     resources.ApplyResources(this.pnWiz0x001c, "pnWiz0x001c");
     this.pnWiz0x001c.Controls.Add(this.tableLayoutPanel1);
     this.pnWiz0x001c.Name = "pnWiz0x001c";
     //
     // flpArgs
     //
     resources.ApplyResources(this.flpArgs, "flpArgs");
     this.tableLayoutPanel1.SetColumnSpan(this.flpArgs, 2);
     this.flpArgs.Controls.Add(this.ldocArg1);
     this.flpArgs.Controls.Add(this.ldocArg2);
     this.flpArgs.Controls.Add(this.ldocArg3);
     this.flpArgs.Name = "flpArgs";
     //
     // ldocArg1
     //
     resources.ApplyResources(this.ldocArg1, "ldocArg1");
     this.ldocArg1.DataOwner                = ((byte)(255));
     this.ldocArg1.DataOwnerEnabled         = true;
     this.ldocArg1.DecimalVisible           = false;
     this.ldocArg1.Instruction              = null;
     this.ldocArg1.LabelSize                = new System.Drawing.Size(61, 13);
     this.ldocArg1.Name                     = "ldocArg1";
     this.ldocArg1.UseFlagNames             = false;
     this.ldocArg1.UseInstancePickerVisible = false;
     this.ldocArg1.Value                    = ((ushort)(0));
     //
     // ldocArg2
     //
     resources.ApplyResources(this.ldocArg2, "ldocArg2");
     this.ldocArg2.DataOwner                = ((byte)(255));
     this.ldocArg2.DataOwnerEnabled         = true;
     this.ldocArg2.DecimalVisible           = false;
     this.ldocArg2.Instruction              = null;
     this.ldocArg2.LabelSize                = new System.Drawing.Size(61, 13);
     this.ldocArg2.Name                     = "ldocArg2";
     this.ldocArg2.UseFlagNames             = false;
     this.ldocArg2.UseInstancePickerVisible = false;
     this.ldocArg2.Value                    = ((ushort)(0));
     //
     // ldocArg3
     //
     resources.ApplyResources(this.ldocArg3, "ldocArg3");
     this.ldocArg3.DataOwner        = ((byte)(255));
     this.ldocArg3.DataOwnerEnabled = true;
     this.ldocArg3.Instruction      = null;
     this.ldocArg3.LabelSize        = new System.Drawing.Size(61, 13);
     this.ldocArg3.Name             = "ldocArg3";
     this.ldocArg3.UseFlagNames     = false;
     this.ldocArg3.Value            = ((ushort)(0));
     //
     // btnTreeName
     //
     resources.ApplyResources(this.btnTreeName, "btnTreeName");
     this.btnTreeName.Name   = "btnTreeName";
     this.btnTreeName.Click += new System.EventHandler(this.btnTreeName_Click);
     //
     // tbTree
     //
     resources.ApplyResources(this.tbTree, "tbTree");
     this.tbTree.Name = "tbTree";
     //
     // tfGlobal
     //
     resources.ApplyResources(this.tfGlobal, "tfGlobal");
     this.tfGlobal.Name = "tfGlobal";
     this.tfGlobal.UseVisualStyleBackColor = true;
     //
     // tfParams
     //
     resources.ApplyResources(this.tfParams, "tfParams");
     this.tfParams.Name = "tfParams";
     this.tfParams.UseVisualStyleBackColor = true;
     //
     // tfArgs
     //
     resources.ApplyResources(this.tfArgs, "tfArgs");
     this.tfArgs.Name = "tfArgs";
     this.tfArgs.UseVisualStyleBackColor = true;
     this.tfArgs.CheckedChanged         += new System.EventHandler(this.tfArgs_CheckedChanged);
     //
     // tfSemiGlobal
     //
     resources.ApplyResources(this.tfSemiGlobal, "tfSemiGlobal");
     this.tfSemiGlobal.Name = "tfSemiGlobal";
     this.tfSemiGlobal.UseVisualStyleBackColor = true;
     //
     // tfPrivate
     //
     resources.ApplyResources(this.tfPrivate, "tfPrivate");
     this.tfPrivate.Checked    = true;
     this.tfPrivate.CheckState = System.Windows.Forms.CheckState.Checked;
     this.tfPrivate.Name       = "tfPrivate";
     this.tfPrivate.UseVisualStyleBackColor = true;
     //
     // cbRTBNType
     //
     this.cbRTBNType.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbRTBNType.FormattingEnabled = true;
     this.cbRTBNType.Items.AddRange(new object[] {
         resources.GetString("cbRTBNType.Items"),
         resources.GetString("cbRTBNType.Items1"),
         resources.GetString("cbRTBNType.Items2")
     });
     resources.ApplyResources(this.cbRTBNType, "cbRTBNType");
     this.cbRTBNType.Name = "cbRTBNType";
     //
     // cbScope
     //
     resources.ApplyResources(this.cbScope, "cbScope");
     this.cbScope.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbScope.FormattingEnabled = true;
     this.cbScope.Items.AddRange(new object[] {
         resources.GetString("cbScope.Items"),
         resources.GetString("cbScope.Items1"),
         resources.GetString("cbScope.Items2")
     });
     this.cbScope.Name = "cbScope";
     this.cbScope.SelectedIndexChanged += new System.EventHandler(this.cbScope_SelectedIndexChanged);
     //
     // label3
     //
     resources.ApplyResources(this.label3, "label3");
     this.label3.Name = "label3";
     //
     // lbTreeName
     //
     resources.ApplyResources(this.lbTreeName, "lbTreeName");
     this.lbTreeName.Name = "lbTreeName";
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name = "label2";
     //
     // label4
     //
     resources.ApplyResources(this.label4, "label4");
     this.label4.Name = "label4";
     //
     // label8
     //
     resources.ApplyResources(this.label8, "label8");
     this.label8.Name = "label8";
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name = "label1";
     //
     // tableLayoutPanel1
     //
     resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
     this.tableLayoutPanel1.Controls.Add(this.flpArgs, 0, 5);
     this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel2, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.cbRTBNType, 1, 3);
     this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel4, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.label4, 0, 3);
     this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel3, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel6, 0, 4);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     //
     // flowLayoutPanel2
     //
     resources.ApplyResources(this.flowLayoutPanel2, "flowLayoutPanel2");
     this.flowLayoutPanel2.Controls.Add(this.cbScope);
     this.flowLayoutPanel2.Controls.Add(this.label8);
     this.flowLayoutPanel2.Name = "flowLayoutPanel2";
     //
     // flowLayoutPanel3
     //
     resources.ApplyResources(this.flowLayoutPanel3, "flowLayoutPanel3");
     this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel3, 2);
     this.flowLayoutPanel3.Controls.Add(this.label3);
     this.flowLayoutPanel3.Controls.Add(this.tfPrivate);
     this.flowLayoutPanel3.Controls.Add(this.tfSemiGlobal);
     this.flowLayoutPanel3.Controls.Add(this.tfGlobal);
     this.flowLayoutPanel3.Name = "flowLayoutPanel3";
     //
     // flowLayoutPanel4
     //
     resources.ApplyResources(this.flowLayoutPanel4, "flowLayoutPanel4");
     this.flowLayoutPanel4.Controls.Add(this.tbTree);
     this.flowLayoutPanel4.Controls.Add(this.btnTreeName);
     this.flowLayoutPanel4.Controls.Add(this.lbTreeName);
     this.flowLayoutPanel4.Name = "flowLayoutPanel4";
     //
     // flowLayoutPanel6
     //
     resources.ApplyResources(this.flowLayoutPanel6, "flowLayoutPanel6");
     this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel6, 2);
     this.flowLayoutPanel6.Controls.Add(this.tfArgs);
     this.flowLayoutPanel6.Controls.Add(this.tfParams);
     this.flowLayoutPanel6.Name = "flowLayoutPanel6";
     //
     // UI
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.Controls.Add(this.pnWiz0x001c);
     this.Name = "UI";
     this.pnWiz0x001c.ResumeLayout(false);
     this.pnWiz0x001c.PerformLayout();
     this.flpArgs.ResumeLayout(false);
     this.flpArgs.PerformLayout();
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     this.flowLayoutPanel2.ResumeLayout(false);
     this.flowLayoutPanel2.PerformLayout();
     this.flowLayoutPanel3.ResumeLayout(false);
     this.flowLayoutPanel3.PerformLayout();
     this.flowLayoutPanel4.ResumeLayout(false);
     this.flowLayoutPanel4.PerformLayout();
     this.flowLayoutPanel6.ResumeLayout(false);
     this.flowLayoutPanel6.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }