private void tsbSettings_Click(object sender, EventArgs e) { using (HistorySettingsForm form = new HistorySettingsForm(Settings)) { form.ShowDialog(); } }
private void tsbSettings_Click(object sender, EventArgs e) { int maxItemCount = Settings.MaxItemCount; using (HistorySettingsForm form = new HistorySettingsForm(Settings)) { form.ShowDialog(); } if (maxItemCount != Settings.MaxItemCount) { RefreshHistoryItems(); } }