private void loadMruButton_Click(object sender, EventArgs e) { RecentCommands rcnt = new RecentCommands(); rcnt.FormClosing += new FormClosingEventHandler(RecentCommandClose); rcnt.ShowDialog(); }
private void ShowRecentCommands() { RecentCommands rcnt = new RecentCommands(); rcnt.FormClosing += (a, b) => functions.Text = rcnt.SelectedCommand; rcnt.StartPosition = FormStartPosition.CenterParent; rcnt.ShowDialog(this); }