private void showDialogSettings_Click(object sender, EventArgs e) { var dialogSettingsCancel = new DialogSettingsCancel(); dialogSettingsCancel.OwningWindowSettings = this; dialogSettingsCancel.Show(); }