示例#1
0
        private void InsertVariable()
        {
            string var = InsertVariableForm.RunQb();

            if (var != null)
            {
                tbxValue.Text = var;
            }
        }
示例#2
0
        public static string RunQb()
        {
            var win = new InsertVariableForm();

            win.tbxName.Text = "VARIABLE";
            if (win.ShowDialogEx() == DialogResult.OK)
            {
                if (win.tbxDefaultValue.Text.IsEmpty())
                {
                    return("@" + win.tbxName.Text);
                }
                else
                {
                    return("@" + win.tbxName.Text + ":" + win.tbxDefaultValue.Text);
                }
            }
            return(null);
        }