public BrowseStorageDialog(IXenObject xenObject) : base(xenObject.Connection) { this.timer = new System.Timers.Timer(); this._selectedTab = -1; this.InitializeComponent(); this.xenObject = xenObject; this.xenObjectBefore = xenObject.Clone(); this.xenObjectCopy = xenObject.Clone(); base.Name = string.Format("Browse {0}", xenObject.GetType().Name); this.Text = string.Format(Messages.BROWSE_STORAGE_DIALOG_TITLE, Helpers.GetName(xenObject)); this.okButton.Text = Messages.OK; if (!Application.RenderWithVisualStyles) { base.ContentPanel.BackColor = SystemColors.Control; } this.Build(); }
public PropertiesDialog(IXenObject xenObject) : base(xenObject.Connection) { // xenObject must not be null. If this occurs, we shouldn't have offered Properties in the UI. Debug.Assert(xenObject != null, "XenObject is null"); InitializeComponent(); this.xenObject = xenObject; xenObjectBefore = xenObject.Clone(); xenObjectCopy = xenObject.Clone(); Name = String.Format("Edit{0}GeneralSettingsDialog", xenObject.GetType().Name); Text = String.Format(Messages.PROPERTIES_DIALOG_TITLE, Helpers.GetName(xenObject)); if (!Application.RenderWithVisualStyles) { ContentPanel.BackColor = SystemColors.Control; } Build(); }
public PropertiesDialog(IXenObject xenObject) : base(xenObject.Connection) { // xenObject must not be null. If this occurs, we shouldn't have offered Properties in the UI. Debug.Assert(xenObject != null, "XenObject is null"); InitializeComponent(); this.xenObject = xenObject; xenObjectBefore = xenObject.Clone(); xenObjectCopy = xenObject.Clone(); Name = String.Format("Edit{0}GeneralSettingsDialog", xenObject.GetType().Name); Text = String.Format(Messages.PROPERTIES_DIALOG_TITLE, Helpers.GetName(xenObject)); if (!Application.RenderWithVisualStyles) ContentPanel.BackColor = SystemColors.Control; Build(); }