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); }
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); }
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)); }
public NTMinerWalletEditCommand(FormType formType, NTMinerWalletViewModel source) { this.FormType = formType; this.Source = source; }
public NTMinerWalletEdit(NTMinerWalletViewModel vm) { this.DataContext = vm; InitializeComponent(); }