Exemplo n.º 1
0
 public static void ShowWindow(FormType formType, NTMinerWalletViewModel source) {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title = "NTMiner钱包",
         FormType = formType,
         IsDialogWindow = true,
         Width = 520,
         CloseVisible = System.Windows.Visibility.Visible,
         IconName = "Icon_Wallet"
     }, ucFactory: (window) => {
         NTMinerWalletViewModel vm = new NTMinerWalletViewModel(source) {
             CloseWindow = () => window.Close()
         };
         return new NTMinerWalletEdit(vm);
     }, fixedSize: true);
 }
Exemplo n.º 2
0
 public static void ShowWindow(FormType formType, NTMinerWalletViewModel source)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title           = "NTMiner钱包",
         FormType        = formType,
         IsMaskTheParent = true,
         Width           = 520,
         CloseVisible    = System.Windows.Visibility.Visible,
         IconName        = "Icon_Wallet"
     }, ucFactory: (window) => {
         NTMinerWalletViewModel vm = new NTMinerWalletViewModel(source);
         window.BuildCloseWindowOnecePath(vm.Id);
         return(new NTMinerWalletEdit(vm));
     }, fixedSize: true);
 }
Exemplo n.º 3
0
 public static void ShowWindow(FormType formType, NTMinerWalletViewModel source)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title           = "NTMiner钱包",
         FormType        = formType,
         IsMaskTheParent = true,
         Width           = 520,
         CloseVisible    = System.Windows.Visibility.Visible,
         IconName        = "Icon_Wallet"
     }, ucFactory: (window) => {
         NTMinerWalletViewModel vm = new NTMinerWalletViewModel(source);
         window.AddOnecePath <CloseWindowCommand>("处理关闭窗口命令", LogEnum.DevConsole, action: message => {
             window.Close();
         }, pathId: vm.Id, location: typeof(NTMinerWalletEdit));
         return(new NTMinerWalletEdit(vm));
     }, fixedSize: true);
 }
 public bool TryGetMineWorkVm(Guid id, out NTMinerWalletViewModel ntminerWalletVm)
 {
     return(_dicById.TryGetValue(id, out ntminerWalletVm));
 }
Exemplo n.º 5
0
 public NTMinerWalletEditCommand(FormType formType, NTMinerWalletViewModel source)
 {
     this.FormType = formType;
     this.Source   = source;
 }
Exemplo n.º 6
0
 public NTMinerWalletEdit(NTMinerWalletViewModel vm) {
     this.DataContext = vm;
     InitializeComponent();
 }