public MainMenuWindow() { InitializeComponent(); ThisFrame = menu_frame; ThisWindow = this; addSqlTime(); #region ========= КОМАНДЫ ========= CloseApplicationCmd = new VTActionCommand(OnCloseApplicationCmdExecute, CanCloseApplicationCmdExecuted); MaximizeApplicationCmd = new VTActionCommand(OnMaximizeApplicationCmdExecute, CanMaximizeApplicationCmdExecuted); MinimizeApplicationCmd = new VTActionCommand(OnMinimizeApplicationCmdExecute, CanMinimizeApplicationCmdExecuted); HideApplicationCmd = new VTActionCommand(OnHideApplicationCmdExecute, CanHideApplicationCmdExecuted); DragApplicationCmd = new VTActionCommand(OnDragApplicationCmdExecute, CanDragApplicationCmdExecuted); ToProcessingCmd = new VTActionCommand(OnToProcessingCmdExecute, CanToProcessingCmdExecuted); ToClientsCmd = new VTActionCommand(OnToClientsCmdExecute, CanToClientsCmdExecuted); ToDeliveryCmd = new VTActionCommand(OnToDeliveryCmdExecute, CanToDeliveryCmdExecuted); ToProductionCmd = new VTActionCommand(OnToProductionCmdExecute, CanToProductionCmdExecuted); ToRestCmd = new VTActionCommand(OnToRestCmdExecute, CanToRestCmdExecuted); ToLunchCmd = new VTActionCommand(OnToLunchCmdExecute, CanToLunchCmdExecuted); ResumeCmd = new VTActionCommand(OnResumeCmdExecute, CanResumeCmdExecuted); #endregion ========= КОМАНДЫ ========= continue_button.IsEnabled = false; dt.Tick += new EventHandler(dt_Tick); dt.Interval = new TimeSpan(0, 0, 0, 0, 1); this.DataContext = this; }
public VTManagerDialog() { InitializeComponent(); #region ========= КОМАНДЫ ========= DragApplicationCmd = new VTActionCommand(OnDragApplicationCmdExecute, CanDragApplicationCmdExecuted); OkCmd = new VTActionCommand(OnOkCmdExecute, CanOkCmdExecuted); #endregion ========= КОМАНДЫ ========= this.DataContext = this; }
// Вывод окна на месте public VTManagerDialog(string header, string message) { InitializeComponent(); #region ========= КОМАНДЫ ========= DragApplicationCmd = new VTActionCommand(OnDragApplicationCmdExecute, CanDragApplicationCmdExecuted); OkCmd = new VTActionCommand(OnOkCmdExecute, CanOkCmdExecuted); #endregion ========= КОМАНДЫ ========= dialog_label.Content = header; contained_info.Text = message; Show(); this.DataContext = this; }
public AuthWindow() { InitializeComponent(); ThisWindow = this; #region ========= КОМАНДЫ ========= CloseApplicationCmd = new VTActionCommand(OnCloseApplicationCmdExecute, CanCloseApplicationCmdExecuted); HideApplicationCmd = new VTActionCommand(OnHideApplicationCmdExecute, CanHideApplicationCmdExecuted); DragApplicationCmd = new VTActionCommand(OnDragApplicationCmdExecute, CanDragApplicationCmdExecuted); LoginCmd = new VTActionCommand(OnLoginCmdExecute, CanLoginCmdExecuted); #endregion ========= КОМАНДЫ ========= this.DataContext = this; }
public ProductionPage() { InitializeComponent(); ThisFrame = item_frame; #region ========= КОМАНДЫ ========= ToHomeCmd = new VTActionCommand(OnToHomeCmdExecute, CanToHomeCmdExecuted); RefreshCmd = new VTActionCommand(OnRefreshCmdExecute, CanRefreshCmdExecuted); Item1Cmd = new VTActionCommand(OnItem1CmdExecute, CanItem1CmdExecuted); Item2Cmd = new VTActionCommand(OnItem2CmdExecute, CanItem2CmdExecuted); #endregion ========= КОМАНДЫ ========= /*Таймер. Обновляет страницу каждые 2 минуты*/ refresh(); this.DataContext = this; }
public Slider() { InitializeComponent(); #region ========= КОМАНДЫ ========= UnloginCmd = new VTActionCommand(OnUnloginCmdExecute, CanUnloginCmdExecuted); OpenConfDirCmd = new VTActionCommand(OnOpenConfDirCmdExecute, CanOpenConfDirCmdExecuted); SaveStandartsCmd = new VTActionCommand(OnSaveStandartsExecute, CanSaveStandartsExecuted); CheckConnectCmd = new VTActionCommand(OnCheckConnectCmdExecute, CanCheckConnectCmdExecuted); OpenConfCmd = new VTActionCommand(OnOpenConfCmdExecute, CanOpenConfCmdExecuted); #endregion ========= КОМАНДЫ ========= #region ========= ПАРАМЕТРЫ ========= LossRatio = VTManagerConfig.xmldata.Descendants("lossRatio").First().Value; SandCost = VTManagerConfig.xmldata.Descendants("sandCost").First().Value; SiliconeCost = VTManagerConfig.xmldata.Descendants("siliconeCost").First().Value; SteelCost = VTManagerConfig.xmldata.Descendants("steelCost").First().Value; OrcglassCost = VTManagerConfig.xmldata.Descendants("orcglassCost").First().Value; PtpfCost = VTManagerConfig.xmldata.Descendants("ptpfCost").First().Value; Timeout = Convert.ToInt32(VTManagerConfig.xmldata.Descendants("callTimeout").First().Value); #endregion ========= ПАРАМЕТРЫ ========= this.DataContext = this; }