Ejemplo n.º 1
0
 public void Show(SchedulerScreen screen)
 {
     this.CurrentVM   = screen;
     this.DisplayName = string.Format("任务调度管理 - {0}", this.CurrentVM.Title);
     this.CurrentVM.Update(Connection.Scheduler);
     this.NotifyOfPropertyChange(() => this.CurrentVM);
 }
Ejemplo n.º 2
0
        public void ShowDialog(SchedulerScreen screen, int width, int height)
        {
            this.DialogVM = screen;
            this.DialogVM.Update(Connection.Scheduler);

            this.IsShowDialog = true;
            this.DialogTitle  = screen.DisplayName;
            this.DialogWidth  = width;
            this.DialogHeight = height;

            this.NotifyOfPropertyChange(() => this.DialogVM);
            this.NotifyOfPropertyChange(() => this.IsShowDialog);
            this.NotifyOfPropertyChange(() => this.DialogTitle);
            this.NotifyOfPropertyChange(() => this.DialogWidth);
            this.NotifyOfPropertyChange(() => this.DialogHeight);
        }