コード例 #1
0
ファイル: CommandLibrary.cs プロジェクト: m-sadegh-sh/Phoenix
 private static void OnShutdownPhoenixCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     if (
         MessageWindowHelpers.Show(null, SharedResources.CloseQuestion, MessageBoxButton.YesNo,
                                   MessageBoxImage.Question) == MessageBoxResult.Yes)
     {
         Utils.GetWindow <MainWindow>().AnimateableClose();
     }
 }
コード例 #2
0
ファイル: CommandLibrary.cs プロジェクト: m-sadegh-sh/Phoenix
 private static void OnOpenSettingsWindowCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     new SettingsWindow().ShowDialog(Utils.GetWindow <MainWindow>());
 }
コード例 #3
0
ファイル: CommandLibrary.cs プロジェクト: m-sadegh-sh/Phoenix
 private static void OnOpenRolesWindowCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     new RolesWindow().ShowDialog(Utils.GetWindow <MainWindow>());
     AppContext.Instanse.ReloadCredentials();
     Utils.GetWindow <MainWindow>().BindCommands();
 }
コード例 #4
0
ファイル: CommandLibrary.cs プロジェクト: m-sadegh-sh/Phoenix
 private static void OnOpenSearchWindowInLogsCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     new SearchWindow("InLogs").ShowDialog(Utils.GetWindow <MainWindow>());
 }
コード例 #5
0
ファイル: CommandLibrary.cs プロジェクト: m-sadegh-sh/Phoenix
 private static void OnOpenRepositoryMaterialsAndItemsWindowCommandExecuted(object sender,
                                                                            ExecutedRoutedEventArgs e)
 {
     new RepositoryMaterialsAndItemsWindow().ShowDialog(Utils.GetWindow <MainWindow>());
 }
コード例 #6
0
ファイル: CommandLibrary.cs プロジェクト: m-sadegh-sh/Phoenix
 private static void OnShowNotificationsWindowCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     new NotificationsWindow().ShowDialog(Utils.GetWindow <MainWindow>());
 }