Esempio n. 1
0
        private void CreateUI()
        {
            Height = 84;
            Width  = 271;

            m_llVariable1           = new LinkLabel();
            m_llVariable1.Text      = (Output1 != null ? Output1.GetText() : "Variable1");
            m_llVariable1.Top       = 0;
            m_llVariable1.Left      = 0;
            m_llVariable1.Height    = Height;
            m_llVariable1.Width     = 100;
            m_llVariable1.Click    += M_llVariable1_Click;
            m_llVariable1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            Controls.Add(m_llVariable1);

            m_cbOperator = new ComboBox();
            m_cbOperator.Items.AddRange(new string[] { "Ist leer", "Ist nicht leer", "Ist gleich", "Ist ungleich", ">=", ">", "<=", "<", "Ist Zahl", "Enthält Text" });
            m_cbOperator.DropDownStyle = ComboBoxStyle.DropDownList;
            m_cbOperator.Top           = Height / 2 - m_cbOperator.Height / 2;
            m_cbOperator.Left          = m_llVariable1.Width;
            m_cbOperator.Width         = 71;
            m_cbOperator.SelectedIndex = (ConditionOperator != "" ? m_cbOperator.Items.IndexOf(ConditionOperator) : 0);
            Controls.Add(m_cbOperator);
            m_cbOperator.SelectedIndexChanged += M_cbOperator_SelectedIndexChanged;

            m_llVariable2           = new LinkLabel();
            m_llVariable2.Text      = (Output2 != null ? Output2.GetText() : "Variable2");
            m_llVariable2.Top       = 0;
            m_llVariable2.Left      = m_cbOperator.Width + m_llVariable1.Width;
            m_llVariable2.Height    = Height;
            m_llVariable2.Width     = 100;
            m_llVariable2.Click    += M_llVariable2_Click;
            m_llVariable2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            Controls.Add(m_llVariable2);
        }
Esempio n. 2
0
        private void M_llVariable1_Click(object sender, EventArgs e)
        {
            FormOutput frm = new FormOutput(Output1, m_macro);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                Output1            = frm.Output;
                m_llVariable1.Text = Output1.GetText();
            }
        }
Esempio n. 3
0
 public override string GetText()
 {
     return("Textvergleich " + (Output1 != null ? Output1.GetText() : "Output") +
            " " + ConditionOperator + " " +
            (Output2 != null ? Output2.GetText() : "Output"));
 }