Esempio n. 1
0
        private void InitValueMode()
        {
            string  temp;
            Control editor = mHLProp.GetEditor(out temp);

            SetCenterControl(editor);
            mMode = localEditMode.Value;

            this.Text = "CONSTANT " + mVariable.Name + " : " + mValue.Type;
        }
Esempio n. 2
0
        private void RenameVarMode()
        {
            //mRenameVarTextBox
            panel1.Controls.Clear();

            mRenameVarTextBox = new TextBox();

            mRenameVarTextBox.Text = this.mValue.Name;

            SetCenterControl(mRenameVarTextBox);
            mMode = localEditMode.VarRename;
        }
Esempio n. 3
0
        private void InitNullMode()
        {
            panel1.Controls.Clear();
            Label l = new Label();

            l.Text = "No Optional Value Set";
            SetCenterControl(l);

            mMode = localEditMode.VarNull;

            this.Text = "IGNORED " + mVariable.Name + " : " + mValue.Type;
        }
Esempio n. 4
0
        private void InitVarMode()
        {
            panel1.Controls.Clear();

            //need var display label...
            Label l = new Label();

            l.Text = mValue.Name;


            //if (TriggerSystemMain.mTriggerDefinitions.IsListType(mValue.Type))
            {
                Button setDefault = new Button();

                setDefault.Text   = "Default";
                setDefault.Click += new EventHandler(setDefault_Click);
                SetCenterControl(DynamicUIHelpers.MakePair(l, setDefault));
            }
            //else
            //{

            //   SetCenterControl(l);
            //}


            //Button b = new Button();
            //b.Text = "Default value..";
            //if(mValue.Value != null && mValue.Value != "")
            //{
            //   b.ForeColor = System.Drawing.Color.Green;
            //}

            //Control c = DynamicUIHelpers.MakePair(l, b);


            mMode = localEditMode.VarView;

            this.Text = "VARIABLE " + mVariable.Name + " : " + mValue.Type;
        }