public static AppForm NewAppForm(string filePath = null) { AppForm appForm = null; // will assign below Func <Project.File, EditorForm> doOpenFile = null; // will assign below var openEditorController = new OpenEditorController(x => doOpenFile(x)); var projectContentFormViewModel = new ProjectContentFormViewModel(openEditorController); var projectContentForm = new ProjectContentForm(projectContentFormViewModel); var findForm = new SearchResultsForm(); appForm = new AppForm(new AppFormViewModel(filePath), projectContentForm, findForm, out doOpenFile); return(appForm); }
public ProjectContentFormViewModel(OpenEditorController openEditorController) { _OpenEditors = openEditorController; }