private void run_App(object sender, StartupEventArgs args) { ClothManager.Instance.InitCloth(); DataManager.Instance.InitData(); WindowMainView mainView = new WindowMainView(); mainView.Show(); }
public WindowMainViewModel(WindowMainView view) { Model = new WindowMainModel(this, view); ExitBtnClicked = new DelegateCommand(); ExitBtnClicked.ExecuteCommand = new Action <object>(Model.ExitBtnClick); ClothBtnClicked = new DelegateCommand(); ClothBtnClicked.ExecuteCommand = new Action <object>(Model.PageSourceCommand_Executed); ImportFileBtnClicked = new DelegateCommand(); ImportFileBtnClicked.ExecuteCommand = new Action <object>(Model.PageSourceCommand_Executed); SelectDataBtnClicked = new DelegateCommand(); SelectDataBtnClicked.ExecuteCommand = new Action <object>(Model.PageSourceCommand_Executed); OutDataBtnClicked = new DelegateCommand(); OutDataBtnClicked.ExecuteCommand = new Action <object>(Model.PageSourceCommand_Executed); }
public WindowMainModel(WindowMainViewModel viewModel, WindowMainView view) { Instance = this; this.ViewModel = viewModel; this.View = view; }