/// <summary>Called just after the root View has been displayed</summary> protected override void OnLaunch() { ProjectListViewModel projectList = IoC.Get <ProjectListViewModel>(); ModuleListViewModel moduleList = IoC.Get <ModuleListViewModel>(); if (moduleList.Project == null && !projectList.IsShow) { projectList.Show(); } }
//#region 文件 //public void New() //{ // //_windowManager.ShowDialog(IoC.Get<MainViewModel>().Project); // MainViewModel main = IoC.Get<MainViewModel>(); // main.IsProjectOpen = true; //} //public void Open() //{ // _statusBar.Message = "打开项目"; //} //public void Save() //{ // _statusBar.Message = "保存项目"; //} //public void SaveAs() //{ // _statusBar.Message = "项目另存为"; //} //public void Exit() //{ // Application.Current.MainWindow?.Close(); //} //#endregion #region 项目 public void Project() { ProjectListViewModel model = IoC.Get <ProjectListViewModel>(); model.Show(); }