public MainViewModel() { MainWinowModel item = new MainWinowModel(); item.ToolBarDescription = "Date and time: "; DispatcherTimer timer = new DispatcherTimer(); timer.Tick += new EventHandler(timer_Tick); timer.Start(); ToolBarDescriptionItem = item.ToolBarDescription; WindowLoaded = new RelayCommand(OnLoaded); CarBrandLoad = new RelayCommand(CarBrandStart); CarBrandReportLoad = new RelayCommand(CarBrandReportStart); CarReportLoad = new RelayCommand(CarReportStart); ClientReportLoad = new RelayCommand(ClientReportStart); ClientLoad = new RelayCommand(ClientStart); CarLoad = new RelayCommand(CarStart); }
public void GetData(Action <MainWinowModel, Exception> callback) { var mainWinModel = new MainWinowModel(); callback(mainWinModel, null); }