/// <summary> /// Response for clicking Vars Window button. /// </summary> /// <param name="sender">Not used.</param> /// <param name="e">Not used.</param> void Button_varsClick(object sender, EventArgs e) { VariablesForm form = VariablesForm.GetInstance(); form.ShowDialog(); UpdateScriptView(); }
/// <summary> /// Response for variable link clicking. /// </summary> /// <param name="sender">Not used.</param> /// <param name="e">Not used.</param> void Var2LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { VariablesForm form = VariablesForm.GetVariableInstance(Value); if (form.ShowDialog() == DialogResult.OK) { Value = form.Value; var2.Text = UserVariables.GetVariableName(Value); } }
/// <summary> /// Action for clicking a flag link. /// </summary> /// <param name="sender">Not used.</param> /// <param name="e">Not used.</param> void FlagLinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { VariablesForm form = VariablesForm.GetFlagInstance(Index); if (form.ShowDialog() == DialogResult.OK) { Index = form.Value; UpdateMe(); } }