Exemple #1
0
        /// <summary>
        /// Constructoe with parameters
        /// </summary>
        /// <param name="programManager">reference to programManager</param>
        /// <param name="terminal">reference to the terminal</param>
        /// <param name="contorCitesteVar">contor for naming</param>
        public ReadVariableCommandPanel(ProgramManagerCommand programManager, ITerminalEntity terminal, int contorCitesteVar) : base(programManager)
        {
            _terminal = terminal;

            TextBox textBox2 = new TextBox();

            textBox2.BackColor = System.Drawing.Color.White;
            textBox2.Location  = new System.Drawing.Point(13, 30);
            textBox2.Name      = "panelCitesteVar" + contorCitesteVar;
            textBox2.Size      = new System.Drawing.Size(145, 20);
            textBox2.TabIndex  = 0;
            textBox2.KeyUp    += new KeyEventHandler(this.ProcessString);

            label1           = new Label();
            label1.AutoSize  = true;
            label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label1.ForeColor = System.Drawing.Color.White;
            label1.Location  = new System.Drawing.Point(76, -2);
            label1.Name      = "label_up" + contorCitesteVar;
            label1.Size      = new System.Drawing.Size(21, 24);
            label1.TabIndex  = 0;
            label1.Text      = "+";

            label2           = new Label();
            label2.AutoSize  = true;
            label2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            label2.ForeColor = System.Drawing.Color.White;
            label2.Location  = new System.Drawing.Point(76, 58);
            label2.Name      = "label_down" + contorCitesteVar;
            label2.Size      = new System.Drawing.Size(21, 24);
            label2.TabIndex  = 0;
            label2.Text      = "+";

            label1.Click += new EventHandler(this.LabelUpClick);
            label2.Click += new EventHandler(this.LabelLeftClick);

            this.Controls.Add(label1);
            this.Controls.Add(label2);

            this.Controls.Add(textBox2);
        }
 /// <summary>
 /// The parameter constructor
 /// </summary>
 /// <param name="variabila">The variable</param>
 /// <param name="terminal">The terminal</param>
 public ReadVariable(Variable variabila, ITerminalEntity terminal)
 {
     _variabila = variabila;
     _terminal  = terminal;
 }