public static void ShowExportDialog(ExportRoomType type, MainWindow owner) { var wnd = new ExportRoomWnd { Owner = owner, _exprotType = type, _myWindow = owner }; wnd.ShowDialog(); }
private void OnExportRoomOps_Button_Click(object sender, RoutedEventArgs e) { ExportRoomWnd.ShowExportDialog(ExportRoomWnd.ExportRoomType.Operations, this); }