Example #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) =>
            {
                this.SelectedMsiFile = new FileInfo(mruFilePathName);
                Presenter.LoadCurrentFile();
            };
            if (!string.IsNullOrEmpty(defaultInputFile))
            {
                this.SelectedMsiFile = new FileInfo(defaultInputFile);
                Presenter.LoadCurrentFile();
            }
        }
Example #2
0
        public MainForm(string defaultInputFile)
        {
            InitializeComponent();
            msiTableGrid.AutoGenerateColumns = false;
            msiPropertyGrid.AutoGenerateColumns = false;
            Presenter = new MainFormPresenter(this);
            Presenter.Initialize();

            if (!string.IsNullOrEmpty(defaultInputFile))
                txtMsiFileName.Text = defaultInputFile;
            _mruManager = new MruMenuStripManager(mruPlaceHolderToolStripMenuItem);
            _mruManager.MruItemClicked += (mruFilePathName) =>
                                          {
                                              this.SelectedMsiFile = new FileInfo(mruFilePathName);
                                              Presenter.LoadCurrentFile();
                                          };
        }