public SpyMainWindow() { InitializeComponent(); _presenterModel = new PresenterModel(this); _presenterModel.Init(); InitMenuStates(); AdjustSize(); _rootNurseObject = TestObjectNurse.FromTree(_presenterModel.GetTreeView()); AppEnvironment.ModelChanged += (status => { this.Text = _windowTitle + " " + AppEnvironment.CurrentModelPath + ((status) ? " - *" : ""); }); mruMenu = new MruStripMenuInline(fileToolStripMenuItem, menuRecentFiles, new MruStripMenu.ClickedHandler(OnMruFile), mruRegKey + "\\MRU" /*, 4 "4 is the max number of recent files*/); mruMenu.LoadFromRegistry(); }
public void SetPresenter(PresenterModel presenterModel) { _presenterModel = presenterModel; }