public InstallerActionsForm(DevCenter devCenter, ScriptPackage package) { InitializeComponent(); if (package == null) throw new ArgumentNullException("Package argument cannot be null"); this.package = package; this.installerConfig = package.InstallerConfiguration; actionsComboBox.Format += new ListControlConvertEventHandler(actionsComboBox_Format); actionPropertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(actionPropertyGrid_PropertyValueChanged); if (package.RootPath.AbsolutePath == String.Empty) { PackageRootPathWarning w = new PackageRootPathWarning(); w.Dock = DockStyle.Fill; this.Controls.Remove(this.tableLayoutPanel); this.Controls.Add(w); } else { fillActionsCombobox(); fillActionsListView(); } }
public InstallerUIForm(DevCenter devCenter, ScriptPackage package) { InitializeComponent(); if (package == null) throw new ArgumentNullException("Package argument cannot be null."); this.package = package; if (package.RootPath.AbsolutePath == String.Empty) { PackageRootPathWarning w = new PackageRootPathWarning(); w.Dock = DockStyle.Fill; this.Controls.Remove(this.tableLayoutPanel); this.Controls.Add(w); } }