private void cmdAdd_Click(object sender, EventArgs e) { SelectVariableDialog dialog = new SelectVariableDialog(this.data); dialog.ShowDialog(); if (dialog.DialogResult == DialogResult.OK) { this.AddTabPage(dialog.SelectedItem); } }
private void cmdAdd_Click(object sender, EventArgs e) { this.cmdAdd.BackgroundImage = zaitun.Properties.Resources.button_selected_view_pane2; SelectVariableDialog dialog = new SelectVariableDialog(this.data); dialog.ShowDialog(); if (dialog.DialogResult == DialogResult.OK) { this.AddTabPage(dialog.SelectedItem); } }