private void m_toolStripTopBtnClear_Click(object sender, EventArgs e) { // is null after deleting a user selection if (m_toolStripTopDrpDownSelect.SelectedItem == null) { return; } ClearUserSelection clearCmd = new ClearUserSelection(); clearCmd.UserSelectionType = m_toolStripTopDrpDownSelect.SelectedItem.ToString(); CommandExecuter.Instance.Execute(clearCmd); }
private void m_btnOK_Click(object sender, EventArgs e) { if (m_clear) { ClearUserSelection cmd = new ClearUserSelection(); cmd.UserSelectionType = m_txtName.Text; Commands.CommandExecuter.Instance.Execute(cmd); } if (m_store) { StoreCurrentSelectionAs cmd = new StoreCurrentSelectionAs(); cmd.UserSelectionType = m_txtName.Text; Commands.CommandExecuter.Instance.Execute(cmd); } Close(); }