public void ActionSettings(object sender, EventArgs args) { SettingsDialogClass sdc = new SettingsDialogClass(); sdc.SetParent(ref MainWindow); sdc.Show(); }