public static void Open(MainWindow mainWindow, Ribbon ribbon) { var qal = new CustomizeQAT(); qal.Owner = mainWindow; qal.MainForm = mainWindow; qal.RefreshQATDialog(ribbon); qal.ShowDialog(); }