private void reNameButton_Click(object sender, EventArgs e) { using (ReNameForm dlg = new ReNameForm(m_viewSheets, m_viewSheets.ViewSheetSetNames)) { dlg.ShowDialog(); } m_stopUpdateFlag = true; viewSheetSetNameComboBox.DataSource = m_viewSheets.ViewSheetSetNames; viewSheetSetNameComboBox.Update(); m_stopUpdateFlag = false; viewSheetSetNameComboBox.SelectedItem = m_viewSheets.SettingName; }
private void renameButton_Click(object sender, EventArgs e) { using (ReNameForm dlg = new ReNameForm(m_printSetup, m_printSetup.PrintSettingNames)) { dlg.ShowDialog(); } m_stopUpdateFlag = true; printSetupsComboBox.DataSource = m_printSetup.PrintSettingNames; printSetupsComboBox.Update(); m_stopUpdateFlag = false; printSetupsComboBox.SelectedItem = m_printSetup.SettingName; }