Exemplo n.º 1
0
        public static void ShowWindow(MinerClientSettingViewModel vm)
        {
            Window window = new MinerClientSetting(vm);

            window.AddCloseWindowOnecePath(vm.Id);
            window.MousePosition();
            window.ShowSoftDialog();
        }
Exemplo n.º 2
0
        public static void ShowWindow(MinerClientSettingViewModel vm)
        {
            Window window = new MinerClientSetting(vm);

            vm.CloseWindow = () => window.Close();
            window.MousePosition();
            window.ShowSoftDialog();
        }
Exemplo n.º 3
0
        public static void ShowWindow(MinerClientSettingViewModel vm)
        {
            Window window = new MinerClientSetting(vm);

            window.AddOnecePath <CloseWindowCommand>("处理关闭窗口命令", LogEnum.DevConsole, action: message => {
                window.Close();
            }, pathId: vm.Id, location: typeof(MinerClientSetting));
            window.MousePosition();
            window.ShowSoftDialog();
        }