Exemple #1
0
        public static void ShowWindow()
        {
            MinerClientAddViewModel vm = new MinerClientAddViewModel();
            Window window = new MinerClientAdd(vm);

            vm.CloseWindow = () => window.Close();
            window.MousePosition();
            window.ShowDialogEx();
        }
        public static void ShowWindow()
        {
            MinerClientAddViewModel vm = new MinerClientAddViewModel();
            Window window = new MinerClientAdd(vm);

            window.AddCloseWindowOnecePath(vm.Id);
            window.MousePosition();
            window.ShowSoftDialog();
        }
Exemple #3
0
        public static void ShowWindow()
        {
            MinerClientAddViewModel vm = new MinerClientAddViewModel();
            Window window = new MinerClientAdd(vm);

            window.AddOnecePath <CloseWindowCommand>("处理关闭窗口命令", LogEnum.DevConsole, action: message => {
                window.Close();
            }, pathId: vm.Id, location: typeof(MinerClientAdd));
            window.MousePosition();
            window.ShowSoftDialog();
        }
        public static void ShowWindow()
        {
            MinerClientAddViewModel vm = new MinerClientAddViewModel();
            Window window = new MinerClientAdd(vm);

            vm.CloseWindow = () => window.Close();
            if (window.Owner != null)
            {
                window.MouseBottom();
                double ownerOpacity = window.Owner.Opacity;
                window.Owner.Opacity = 0.6;
                window.ShowDialog();
                window.Owner.Opacity = ownerOpacity;
            }
            else
            {
                window.ShowDialog();
            }
        }