예제 #1
0
        private void run_App(object sender, StartupEventArgs args)
        {
            ClothManager.Instance.InitCloth();

            DataManager.Instance.InitData();

            WindowMainView mainView = new WindowMainView();

            mainView.Show();
        }
예제 #2
0
        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);
        }
예제 #3
0
 public WindowMainModel(WindowMainViewModel viewModel, WindowMainView view)
 {
     Instance       = this;
     this.ViewModel = viewModel;
     this.View      = view;
 }