private void InsertVariable() { string var = InsertVariableForm.RunQb(); if (var != null) { tbxValue.Text = var; } }
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); }