示例#1
0
		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);
			}
		}
示例#2
0
        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);
            }
        }
示例#3
0
 public MruItem(MruMenuStripManager manager, string filePathName)
 {
     this.Manager = manager;
     this.FilePathName = filePathName;
     this.Text = filePathName;
 }
示例#4
0
 public MruItem(MruMenuStripManager manager, string filePathName)
 {
     this.Manager      = manager;
     this.FilePathName = filePathName;
     this.Text         = filePathName;
 }