public MainForm(string defaultInputFile) { InitializeComponent(); msiTableGrid.AutoGenerateColumns = false; msiPropertyGrid.AutoGenerateColumns = false; Presenter = new MainFormPresenter(this); Presenter.Initialize(); _mruManager = new MruMenuStripManager(mruPlaceHolderToolStripMenuItem); _mruManager.MruItemClicked += (mruFilePathName) => Presenter.LoadFile(mruFilePathName); if (!string.IsNullOrEmpty(defaultInputFile)) { Presenter.LoadFile(defaultInputFile); } }
public MruItem(MruMenuStripManager manager, string filePathName) { this.Manager = manager; this.FilePathName = filePathName; this.Text = filePathName; }