Esempio n. 1
0
 public static void ShowWindow(RemoteDesktopLoginViewModel vm)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title          = "登录远程桌面 - " + vm.Ip,
         IconName       = "Icon_RemoteDesktop",
         Width          = 400,
         Height         = 160,
         IsDialogWindow = true,
         CloseVisible   = System.Windows.Visibility.Visible,
         FooterVisible  = System.Windows.Visibility.Collapsed
     }, ucFactory: (window) => {
         vm.CloseWindow = window.Close;
         return(new RemoteDesktopLogin(vm));
     }, fixedSize: true);
 }
Esempio n. 2
0
 public static void ShowWindow(RemoteDesktopLoginViewModel vm)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title           = vm.Title,
         IconName        = "Icon_RemoteDesktop",
         Width           = 400,
         Height          = 190,
         IsMaskTheParent = true,
         CloseVisible    = System.Windows.Visibility.Visible,
         FooterVisible   = System.Windows.Visibility.Collapsed
     }, ucFactory: (window) => {
         window.AddCloseWindowOnecePath(vm.Id);
         return(new RemoteDesktopLogin(vm));
     }, beforeShow: (window, uc) => {
         uc.DoFocus();
     }, fixedSize: true);
 }
 public static void ShowWindow(RemoteDesktopLoginViewModel vm)
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title           = "登录远程桌面 - " + vm.Ip,
         IconName        = "Icon_RemoteDesktop",
         Width           = 400,
         Height          = 160,
         IsMaskTheParent = true,
         CloseVisible    = System.Windows.Visibility.Visible,
         FooterVisible   = System.Windows.Visibility.Collapsed
     }, ucFactory: (window) => {
         window.AddOnecePath <CloseWindowCommand>("处理关闭窗口命令", LogEnum.DevConsole, action: message => {
             window.Close();
         }, pathId: vm.Id, location: typeof(RemoteDesktopLogin));
         return(new RemoteDesktopLogin(vm));
     }, fixedSize: true);
 }
Esempio n. 4
0
 public RemoteDesktopLogin(RemoteDesktopLoginViewModel vm)
 {
     this.DataContext = vm;
     InitializeComponent();
 }
Esempio n. 5
0
 public ShowRemoteDesktopLoginDialogCommand(RemoteDesktopLoginViewModel vm)
 {
     this.Vm = vm;
 }