Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirtualMachinePlatformConfigForm"/> class.
 /// </summary>
 public VirtualMachinePlatformConfigForm()
 {
     InitializeComponent();
     UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
     _assetInventoryContext = DbConnect.AssetInventoryContext();
     _enterpriseTestContext = DbConnect.EnterpriseTestContext();
 }
        /// <summary>
        /// Creates an instance of Remote Print Queue Selection, which allows you to select queues for various functions.
        /// </summary>
        public RemotePrintQueueSelectionForm()
        {
            InitializeComponent();

            UserInterfaceStyler.Configure(this, ScalableTest.Framework.UI.FormStyle.SizeableDialog);
            UserInterfaceStyler.Configure(printQueue_GridView, ScalableTest.Framework.UI.GridViewStyle.ReadOnly);
        }
        public GlobalSettingsManagementDialog()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.SizeableDialogWithHelp);

            _context = new EnterpriseTestContext();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public MobileDeviceListForm()
 {
     InitializeComponent();
     UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
     UserInterfaceStyler.Configure(radGrid_Devices, GridViewStyle.ReadOnly);
     ShowIcon = true;
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Initializes this form instance.
        /// </summary>
        private void Initialize()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);
            ShowIcon = true;
            _context = DbConnect.AssetInventoryContext();

            // Set up Validation
            fieldValidator.RequireValue(textBox_AssetId, label_AssetId);
            fieldValidator.RequireValue(textBox_Product, label_Product);
            fieldValidator.RequireValue(textBox_Address, label_Address);
            fieldValidator.RequireValue(textBox_VmName, label_VmName);
            fieldValidator.RequireCustom(label_Capabilites, () => _capabilityControls.Any(n => n.Checked), "At least one capability must be selected.");

            fieldValidator.SetIconAlignment(textBox_AssetId, ErrorIconAlignment.MiddleLeft);
            fieldValidator.SetIconAlignment(textBox_Product, ErrorIconAlignment.MiddleLeft);
            fieldValidator.SetIconAlignment(textBox_Address, ErrorIconAlignment.MiddleLeft);
            fieldValidator.SetIconAlignment(textBox_VmName, ErrorIconAlignment.MiddleLeft);
            fieldValidator.SetIconAlignment(label_Capabilites, ErrorIconAlignment.MiddleLeft);

            _capabilityControls = new List <CheckBox>()
            {
                checkBox_Scan, checkBox_ControlPanel, checkBox_Mobile
            };
        }
Ejemplo n.º 6
0
        public AboutBox()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);


            this.Text = String.Format(CultureInfo.CurrentCulture, "About {0}", AssemblyProperties.Title);
            var versionInfo = new List <string>();

            versionInfo.Add(AssemblyProperties.Product);
            versionInfo.Add(String.Format(CultureInfo.CurrentCulture, "Version {0}", AssemblyProperties.Version));
            versionInfo.Add(AssemblyProperties.Copyright);
            versionInfo.Add(AssemblyProperties.Company);
            var installedPrograms = InstalledAppHelper.GetInstalledPrograms().OrderBy(x => x.DisplayName);
            var stb = installedPrograms.FirstOrDefault(x => x.DisplayName.StartsWith("HP Solution Test Bench"));

            if (stb != null)
            {
                versionInfo.Add("Installed Application:");
                versionInfo.Add("  {0}, {1}".FormatWith(stb.DisplayName, stb.DisplayVersion));
            }

            textBoxVersionInfo.Text = string.Join(Environment.NewLine, versionInfo);
            textBoxDescription.Text = AssemblyProperties.Description;
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Initializes this form instance.
        /// </summary>
        private void Initialize()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);
            ShowIcon = true;
            _context = DbConnect.AssetInventoryContext();

            // Set up Validation
            fieldValidator.RequireValue(assetId_TextBox, assetId_Label);
            fieldValidator.RequireSelection(manufacturer_ComboBox, manufacturer_Label);
            fieldValidator.RequireSelection(modelName_ComboBox, modelName_Label);
            fieldValidator.RequireCustom(address1_Control, () => ValidateIPAddress(address1_Control.Text), "A valid IP Address is required.");
            fieldValidator.RequireCustom(printerCapabilites_Label, () => _capabilityControls.Any(n => n.Checked), "At least one capability must be selected.");
            fieldValidator.RequireValue(adminPassword_TextBox, adminPassword_Label);

            fieldValidator.SetIconAlignment(assetId_TextBox, ErrorIconAlignment.MiddleRight);
            fieldValidator.SetIconAlignment(manufacturer_ComboBox, ErrorIconAlignment.MiddleRight);
            fieldValidator.SetIconAlignment(modelName_ComboBox, ErrorIconAlignment.MiddleRight);
            fieldValidator.SetIconAlignment(address1_Control, ErrorIconAlignment.MiddleRight);
            fieldValidator.SetIconAlignment(printerCapabilites_Label, ErrorIconAlignment.MiddleRight);
            fieldValidator.SetIconAlignment(adminPassword_TextBox, ErrorIconAlignment.MiddleRight);

            _capabilityControls = new List <CheckBox>()
            {
                print_CheckBox, scan_CheckBox, controlPanel_CheckBox
            };
        }
        private void ConfigureSettingsGrid()
        {
            UserInterfaceStyler.Configure(settings_RadGridView, GridViewStyle.ReadOnly);
            settings_RadGridView.AllowRowResize = true;

            GridViewColumn subType_Column = settings_RadGridView.MasterTemplate.Columns["subType_Column"];

            switch (_settingType)
            {
            case SettingType.PluginSetting:
                subType_Column.HeaderText = "Plugin";
                break;

            case SettingType.ServerSetting:
                subType_Column.HeaderText = "Server";
                break;

            case SettingType.SystemSetting:
                break;

            default:
                GridViewColumn type_Column = settings_RadGridView.MasterTemplate.Columns["type_Column"];
                type_Column.IsVisible = true;
                break;
            }
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WizardSessionInitializationPage"/> class.
 /// </summary>
 public WizardSessionInitializationPage()
 {
     InitializeComponent();
     AssetStatusRow.Icons = availabilityIcons_ImageList;
     UserInterfaceStyler.Configure(assetStatus_GridView, GridViewStyle.ReadOnly);
     assetStatus_GridView.MasterTemplate.SelectLastAddedRow = false;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="MonitorConfigDetailForm"/> form.
        /// </summary>
        /// <param name="monitorConfig">The location.</param>
        public MonitorConfigDetailForm(MonitorConfig monitorConfig)
        {
            InitializeComponent();
            serverComboBox.Initialize(new List <string>()
            {
                "FileServer", "Solution"
            });
            _monitorConfig            = monitorConfig;
            _errorProvider.BlinkStyle = ErrorBlinkStyle.NeverBlink;

            monitorType_ComboBox.DataSource    = GetMonitorTypes();
            monitorType_ComboBox.SelectedIndex = -1;

            //Wire up events
            serverComboBox.Validating                 += serverComboBox_Validating;
            monitorType_ComboBox.Validating           += monitorType_ComboBox_Validating;
            monitorType_ComboBox.SelectedIndexChanged += monitorType_ComboBox_SelectedIndexChanged;

            // Initialize controls with data from MonitorConfig
            ServerInfo server = ConfigurationServices.AssetInventory.GetServers().FirstOrDefault(n => n.HostName == _monitorConfig.ServerHostName);

            if (server != null)
            {
                serverComboBox.SelectedServer = server;
            }

            // If this is a "create new" operation, the monitor type will be blank
            if (string.IsNullOrEmpty(monitorConfig.MonitorType) == false)
            {
                monitorType_ComboBox.SelectedValue = _monitorConfig.MonitorType;
            }

            UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
        }
Ejemplo n.º 11
0
 public ScenarioSelectionForm()
 {
     InitializeComponent();
     UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);
     scenarioTreeView.ImageList = IconManager.Instance.ConfigurationIcons;
     scenarioTreeView.TreeViewElement.Comparer = new ScenarioSelectionTreeNodeComparer(scenarioTreeView.TreeViewElement);
 }
Ejemplo n.º 12
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SeriesFilterForm"/> class.
        /// </summary>
        /// <param name="seriesList">The series list.</param>
        public SeriesFilterForm(IEnumerable <SeriesInfo> seriesList, IEnumerable <SubstringFilter> substringFilters)
        {
            if (seriesList == null)
            {
                throw new ArgumentNullException("seriesList");
            }

            InitializeComponent();

            UserInterfaceStyler.Configure(series_radGridView, GridViewStyle.FullEdit);
            UserInterfaceStyler.Configure(hidden_radGridView, GridViewStyle.ReadOnly);

            foreach (SeriesInfo series in seriesList)
            {
                _bindingList.Add(series);
            }

            foreach (SubstringFilter filter in substringFilters)
            {
                _filters.Add(filter);
            }

            hidden_radGridView.DataSource = _filters;

            series_radGridView.DataSource = _bindingList;

            ApplySeriesFilters();
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SessionConfigurationWizard"/> class.
        /// </summary>
        public SessionConfigurationWizard(List <Guid> scenarioIds)
        {
            InitializeComponent();

            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);
            main_RadWizard.HelpButton.Visibility = ElementVisibility.Hidden;
            main_RadWizard.FinishButton.Text     = "Start Session";

            // Add controls to the wizard pages
            if (scenarioIds.Count > 1)
            {
                AddPage <WizardScenarioBatchPage>(scenarioSelection_WizardPage);
            }
            else
            {
                AddPage <WizardScenarioSelectionPage>(scenarioSelection_WizardPage);
            }
            AddPage <WizardAssetReservationPage>(assetReservation_WizardPage);
            AddPage <WizardDeviceSetupPage>(deviceSetup_WizardPage);
            AddPage <WizardSessionInitializationPage>(summary_WizardPage);

            // Initialize the configuration
            _configuration = new WizardConfiguration();
            _configuration.Ticket.ScenarioIds = scenarioIds;
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AdminWorkerControl"/> class.
        /// </summary>
        public AdminWorkerControl()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(activity_GridView, GridViewStyle.Display);

            _mainConfigurations = new SortableBindingList <WorkerActivityConfiguration>();
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PrintDriverConfigForm"/> class.
        /// </summary>
        public PrintDriverConfigForm()
        {
            InitializeComponent();

            UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
            UserInterfaceStyler.Configure(printDriver_RadGridView, GridViewStyle.ReadOnly);
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Initializes a new instance of the<see cref="SessionDataForm"/> class.
        /// </summary>
        public SessionDataForm()
        {
            InitializeComponent();

            UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
            UserInterfaceStyler.Configure(sessionData_GridView, GridViewStyle.ReadOnly);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CitrixPublishedAppsForm"/> class.
        /// </summary>
        public CitrixPublishedAppsForm()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);

            _context       = DbConnect.AssetInventoryContext();
            _publishedApps = new Dictionary <string, SortableBindingList <StringValue> >();
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SelectedVirtualMachinesForm"/> class.
        /// </summary>
        public SelectedVirtualMachinesForm(IEnumerable <VirtualMachine> machines)
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
            UserInterfaceStyler.Configure(virtualMachine_GridView, GridViewStyle.ReadOnly);

            _machines = machines;
        }
Ejemplo n.º 19
0
        public UserManagementForm(User user, EnterpriseTestContext context)
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);

            _user    = user;
            _context = context;
        }
        public WorkerActivityPacingForm(IEnumerable <WorkerActivityConfiguration> configurations)
        {
            _configurations = configurations;

            UserInterfaceStyler.Configure(this, FormStyle.FixedDialogWithHelp);
            InitializeComponent();
            _helpForm = new ActivityExecutionHelpForm(ActivityExecutionHelpForm.Edge.Left);
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VirtualMachinePlatformConfigForm"/> class.
        /// </summary>
        public UserGroupsConfigForm()
        {
            InitializeComponent();

            UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);

            _context = new EnterpriseTestContext();
        }
Ejemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CameraListForm"/> class.
 /// </summary>
 public CameraListForm()
 {
     InitializeComponent();
     UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
     UserInterfaceStyler.Configure(radGridViewCameras, GridViewStyle.ReadOnly);
     ShowIcon = true;
     radGridViewCameras.AutoGenerateColumns = false;
 }
Ejemplo n.º 23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionNotesForm"/> class.
 /// </summary>
 public SessionNotesForm()
 {
     InitializeComponent();
     UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
     _enterpriseTestContext = new EnterpriseTestContext();
     _dataLogContext        = DbConnect.DataLogContext();
     LoadComboBoxes();
 }
Ejemplo n.º 24
0
        public AssociatedProductsForm()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);
            products_DataGridView.AutoGenerateColumns = false;

            _context = new EnterpriseTestContext();
        }
 /// <summary>
 /// Creates a new instance of PerfMonCongigurationForm.
 /// </summary>
 public PerfMonConfigurationForm()
 {
     InitializeComponent();
     InitializeControl();
     UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);
     selectedCounters_DataGridView.AutoGenerateColumns = false;
     selectedCounters_DataGridView.DataSource          = _selectedCounters;
 }
 public SoftwareInstallerForm()
 {
     InitializeComponent();
     UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
     _errorProvider.BlinkStyle = ErrorBlinkStyle.NeverBlink;
     _errorProvider.SetIconAlignment(description_TextBox, ErrorIconAlignment.MiddleLeft);
     _errorProvider.SetIconAlignment(filePath_TextBox, ErrorIconAlignment.MiddleLeft);
     _errorProvider.SetIconAlignment(reboot_ComboBox, ErrorIconAlignment.MiddleLeft);
 }
Ejemplo n.º 27
0
        public PrintServerUsageDetails(string serverName, SortableBindingList <PrintQueueInUse> queuesInUse)
        {
            InitializeComponent();

            UserInterfaceStyler.Configure(queues_DataGridView, GridViewStyle.ReadOnly);

            _serverName  = serverName;
            _queuesInUse = queuesInUse;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="VirtualMachinePlatformConfigForm"/> class.
        /// </summary>
        public VirtualMachineUserViewForm()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.SizeableDialog);
            _entities = new EnterpriseTestContext();

            platformFilter_ToolStripComboBox.ComboBox.DisplayMember = "Name";
            platformFilter_ToolStripComboBox.ComboBox.ValueMember   = "FrameworkClientPlatformId";
        }
Ejemplo n.º 29
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LoadTesterControl"/> class.
        /// </summary>
        public LoadTesterControl()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(activity_GridView, GridViewStyle.Display);

            this.activity_GridView.TableElement.AlternatingRowColor = System.Drawing.Color.FromArgb(240, 240, 240);

            _configurations = new SortableBindingList <LoadTesterConfiguration>();
        }
Ejemplo n.º 30
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SelectPrinterDialog"/> class.
        /// </summary>
        public SelectPrinterDialog()
        {
            InitializeComponent();
            UserInterfaceStyler.Configure(this, FormStyle.FixedDialog);
            bool visible = SecondaryAddressVisible();

            label_Address2.Visible   = visible;
            textBox_Address2.Visible = visible;
        }