public ManualControlBoardViewModel() { _manualControlBoardService = new SCA.BusinessLib.BusinessLogic.ManualControlBoardService(TheController); EventMediator.Register("AddMoreLines", AddMoreLines); EventMediator.Register("RefreshCollection", RefreshCollection); EventMediator.Register("RefreshDeviceCode", RefreshDeviceCode); }
public ImportControllerViewModel() { ImportContentSelectorViewModel importContentSelectorVM = new ImportContentSelectorViewModel(); ImportContentSelectorDataContext = importContentSelectorVM; EventMediator.Register("CancelExcelImport", CancelExcelImport); ToggleButtonStateForReadingExcel(false); GetValidDeviceType(SelectedControllerType); SetSelectedDeviceTypeCode(SelectedControllerType); EventMediator.Register("ImportControllerViewClose", CloseViewExecute); }
public MainWindow() { InitializeComponent(); ShowWelcomeScreen(); this.DataContext = vm; EventMediator.Register("UploadedFinished", ControllerInfoUploadedFinished); EventMediator.Register("UpdateProgressBarStatusEvent", UpdateProgressBarStatus); EventMediator.Register("DisplayTheOpenedProject", DisplayTheOpenedProject); EventMediator.Register("RefreshNavigator", RefreshNavigator); this.WindowStartupLocation = WindowStartupLocation.CenterScreen; //this.Left = System.Windows.SystemParameters.WorkArea.Width;// -this.Width; //this.Top = System.Windows.SystemParameters.WorkArea.Height;// -this.Height; }