コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: PropertiesDialog.cs プロジェクト: ywscr/xenadmin
        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();
        }
コード例 #3
0
        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();
        }