/// <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; }
/// <summary> /// Initializes the wizard page with the specified <see cref="WizardConfiguration"/>. /// </summary> /// <param name="configuration">The configuration.</param> public bool Initialize(WizardConfiguration configuration) { header_Label.Text = string.Empty; _configuration = configuration; // Make an initial reservation reserve_Button_Click(null, EventArgs.Empty); LoadReservedForComboBox(); SetDisplay(_configuration.SessionAssets.Any()); return(true); }
/// <summary> /// Initializes the wizard page with the specified <see cref="WizardConfiguration"/>. /// </summary> /// <param name="configuration">The configuration.</param> public bool Initialize(WizardConfiguration configuration) { _assets = configuration.SessionAssets; AvailableDeviceSet <AssetDetail> assetSet = new AvailableDeviceSet <AssetDetail>(_assets); var printDevices = assetSet.Devices.OfType <PrintDeviceDetail>().ToList(); deviceSetup_GridView.DataSource = printDevices; //deviceSetup_GridView.BestFitColumns(); return(printDevices.Any()); }
/// <summary> /// Initializes the wizard page with the specified <see cref="WizardConfiguration"/>. /// </summary> /// <param name="configuration">The configuration.</param> public bool Initialize(WizardConfiguration configuration) { _sessionId = configuration.Ticket.SessionId; _statusRows = new BindingList <AssetStatusRow>(); assetStatus_GridView.DataSource = _statusRows; SessionClient.Instance.SessionStateReceived += SessionStateReceived; SessionClient.Instance.SessionStartupTransitionReceived += SessionStartupTransitionReceived; SessionClient.Instance.SessionMapElementReceived += SessionMapElementReceived; if (_finishButton != null) { _finishButton.Enabled = false; } TraceFactory.Logger.Debug("Calling Stage"); SessionClient.Instance.Stage(_sessionId, configuration.SessionAssets); return(true); }