Пример #1
0
 public static void ShowWindow(MinerClientViewModel minerClientVm)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         IconName       = "Icon_Restart",
         IsDialogWindow = true,
         CloseVisible   = System.Windows.Visibility.Visible
     }, ucFactory: (window) => {
         var vm         = new MinerClientRestartViewModel(minerClientVm);
         vm.CloseWindow = () => window.Close();
         return(new MinerClientRestart(vm));
     }, fixedSize: true);
 }
Пример #2
0
 public MinerClientRestart(MinerClientRestartViewModel vm)
 {
     this.DataContext = vm;
     InitializeComponent();
 }
Пример #3
0
 public MinerClientRestart(MinerClientRestartViewModel vm)
 {
     this.DataContext = vm;
     InitializeComponent();
     ResourceDictionarySet.Instance.FillResourceDic(this, this.Resources);
 }