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