public WorkerDataInputForm(UpdateForm uf, string s, MainMenu m) { InitializeComponent(); myCaller = uf; mainMenu = m; WorkerPasswordBox.PasswordChar = '*'; Object[] status = new Object[2]; status[0] = "Active"; status[1] = "Inactive"; StatusComboBox.Items.AddRange(status); Object[] credential = new Object[2]; credential[0] = "Administrator"; credential[1] = "Ordinary"; CredentialComboBox.Items.AddRange(credential); Worker existingWorker = new Worker(); existingWorker.populateBannerID(s); WorkerDataLabel.Text = "Modify Worker Data"; BannerIDBox.Text = existingWorker.BannerID; FirstNameBox.Text = existingWorker.FirstName; LastNameBox.Text = existingWorker.LastName; PhoneNumberBox.Text = existingWorker.PhoneNumber; EmailBox.Text = existingWorker.EmailAddress; CredentialComboBox.SelectedIndex = CredentialComboBox.FindStringExact(existingWorker.Credential); WorkerPasswordBox.Text = existingWorker.WorkerPassword; NotesBox.Text = existingWorker.Notes; StatusComboBox.SelectedIndex = StatusComboBox.FindStringExact(existingWorker.Status); FormAction = "update"; id = s; }
private void metroButton1_Click(object sender, EventArgs e) { try { metroLabel16.Text = ""; PlayerNameBox.Clear(); txtPlayerGems.Clear(); lvlbox.Clear(); StatusComboBox.Clear(); PlayerScoreBox.Clear(); PlayerRankBox.Clear(); PlayerNameBox.Text = ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetPlayerAvatar().GetAvatarName(); PlayerRankBox.Text += ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetAccountPrivileges(); PlayerScoreBox.Text += ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetPlayerAvatar().GetScore(); lvlbox.Text += ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetPlayerAvatar().GetAvatarLevel(); metroLabel16.Text += ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetPlayerAvatar().GetAllianceId(); txtPlayerGems.Text += ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetPlayerAvatar().GetDiamonds(); if (ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetAccountStatus() == 0) { StatusComboBox.Text = "Normal"; } else if (ResourcesManager.GetPlayer(long.Parse(PlayerID.Text)).GetAccountStatus() == 99) { StatusComboBox.Text = "Banned"; } } catch (Exception) { MessageBox.Show("Can't Load Player Profile, This Player ID Not Found : " + PlayerID.Text, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void StartDate_LostFocus(object sender, RoutedEventArgs e) { if (!EndDate.IsEnabled) { StatusComboBox.Focus(); } }
private void RefreshCombos() { EquipTypeComboBox.FillComboBox(Attributes.DeviceAttributes.EquipType); LocationComboBox.FillComboBox(Attributes.DeviceAttributes.Locations); StatusComboBox.FillComboBox(Attributes.DeviceAttributes.StatusType); OSTypeComboBox.FillComboBox(Attributes.DeviceAttributes.OSType); }
public UserDataInputForm(DeleteForm df, string s, MainMenu m) { InitializeComponent(); myCaller = df; UserDataLabel.Text = "Are you sure? CLick SUBMIT to delete user"; this.mainMenu = m; User existingUser = new User(); Object[] userType = new Object[2]; userType[0] = "Faculty/Staff"; userType[1] = "Student"; UserTypeComboBox.Items.AddRange(userType); Object[] status = new Object[2]; status[0] = "Active"; status[1] = "Inactive"; StatusComboBox.Items.AddRange(status); existingUser.populateWithBannerID(s); BannerIDBox.Text = existingUser.BannerID; FirstNameBox.Text = existingUser.FirstName; LastNameBox.Text = existingUser.LastName; PhoneNumberBox.Text = existingUser.PhoneNumber; EmailBox.Text = existingUser.EmailAddress; UserTypeComboBox.SelectedIndex = UserTypeComboBox.FindStringExact(existingUser.UserType); NotesBox.Text = existingUser.Notes; StatusComboBox.SelectedIndex = StatusComboBox.FindStringExact(existingUser.Status); FormAction = "delete"; bannerID = s; }
private void Profile_Load(object sender, EventArgs e) { try { if (!string.IsNullOrEmpty(Customer?.Url)) { //var request = WebRequest.Create(Customer.Url); //using (var response = request.GetResponse()) //using (var stream = response.GetResponseStream()) //{ Avatar.LoadAsync(Customer.Url); //Rectangle r = new Rectangle(0, 0, pictureBox1.Width, pictureBox1.Height); //System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath(); //gp.AddEllipse(0, 0, pictureBox1.Width - 3, pictureBox1.Height - 3); //Region rg = new Region(gp); //pictureBox1.Region = rg; //} } } catch (Exception exception) { Console.WriteLine(exception); } CustomerNameTxt.Text = Customer?.Name; //UidLabel.Text = Customer?.UId; EmailLabel.Text = Customer?.Email; PhoneLabel.Text = Customer?.Phone; StatusComboBox.SelectedIndex = StatusComboBox.FindStringExact(Customer?.Status); }
private void Profile_Load(object sender, EventArgs e) { WeightVerionLabel.Text = WeightVersionModel?.Version; IdTextBox.Text = WeightVersionModel?.Id; CreatedDateTextBox.Text = WeightVersionModel?.CreatedDateText; ClassVersionTextBox.Text = ClassVersionModel?.Version; CommitHashTextBox.Text = ClassVersionModel?.CommitHash; ClassCreatedDateTextBox.Text = ClassVersionModel?.CreatedDateText; StatusComboBox.SelectedIndex = StatusComboBox.FindStringExact(WeightVersionModel?.Status); }
private void ClearAll() { RefreshCombos(); MunisUser = new MunisEmployee(); ClearFields(this); PurchaseDatePicker.Value = DateTime.Now; StatusComboBox.SetSelectedAttribute(Attributes.DeviceAttributes.StatusType["INSRV"]); TrackableCheckBox.Checked = false; NoClearCheckBox.Checked = false; controlParser.ClearErrors(); }
private void InitDBControls() { SerialSearchTextBox.SetDBInfo(DevicesCols.Serial); AssetTagSearchTextBox.SetDBInfo(DevicesCols.AssetTag); DescriptionTextBox.SetDBInfo(DevicesCols.Description); EquipTypeComboBox.SetDBInfo(DevicesCols.EQType, Attributes.DeviceAttributes.EquipType); ReplaceYearTextBox.SetDBInfo(DevicesCols.ReplacementYear); OSTypeComboBox.SetDBInfo(DevicesCols.OSVersion, Attributes.DeviceAttributes.OSType); LocationComboBox.SetDBInfo(DevicesCols.Location, Attributes.DeviceAttributes.Locations); CurrrentUserTextBox.SetDBInfo(DevicesCols.CurrentUser); StatusComboBox.SetDBInfo(DevicesCols.Status, Attributes.DeviceAttributes.StatusType); TrackablesCheckBox.SetDBInfo(DevicesCols.Trackable); }
public BicycleDataInputForm(UpdateForm uf, int i, MainMenu mm) { InitializeComponent(); myCaller = uf; mainMenu = mm; BicycleDataInputFormTitle.Text = "Modify Bicycle data"; Object[] location = new Object[7]; location[0] = "Benedict Hall"; location[1] = "Harmon Hall"; location[2] = "McFarlane Hall"; location[3] = "Mortimer Hall"; location[4] = "Student Union"; location[5] = "Thompson Hall"; location[6] = "Welcome Center"; LocationComboBox.Items.AddRange(location); Object[] physical = new Object[2]; physical[0] = "Good"; physical[1] = "Damaged"; PhysicalConditionComboBox.Items.AddRange(physical); Object[] status = new Object[2]; status[0] = "Available"; status[1] = "Unavailable"; StatusComboBox.Items.AddRange(status); Vehicle existingVehicle = new Vehicle(); existingVehicle.populate(i); BikeMakeBox.Text = existingVehicle.BikeMake; ModelNumberBox.Text = existingVehicle.ModelNumber; SerialNumberBox.Text = existingVehicle.SerialNumber; ColorBox.Text = existingVehicle.Color; DescriptionBox.Text = existingVehicle.Description; LocationComboBox.SelectedIndex = LocationComboBox.FindStringExact(existingVehicle.Location); PhysicalConditionComboBox.SelectedIndex = PhysicalConditionComboBox.FindStringExact(existingVehicle.PhysicalCondition); NotesBox.Text = existingVehicle.Notes; StatusComboBox.SelectedIndex = StatusComboBox.FindStringExact(existingVehicle.Status); FormAction = "update"; id = i; }
private void InitDBControls() { DescriptionTextBox.SetDBInfo(DevicesBaseCols.Description, true); AssetTagTextBox.SetDBInfo(DevicesBaseCols.AssetTag, true); SerialTextBox.SetDBInfo(DevicesBaseCols.Serial, true); PurchaseDatePicker.SetDBInfo(DevicesBaseCols.PurchaseDate, true); ReplaceYearTextBox.SetDBInfo(DevicesBaseCols.ReplacementYear, false); LocationComboBox.SetDBInfo(DevicesBaseCols.Location, Attributes.DeviceAttributes.Locations, true); CurrentUserTextBox.SetDBInfo(DevicesBaseCols.CurrentUser, true); OSTypeComboBox.SetDBInfo(DevicesBaseCols.OSVersion, Attributes.DeviceAttributes.OSType, true); PhoneNumTextBox.SetDBInfo(DevicesBaseCols.PhoneNumber, false); EquipTypeComboBox.SetDBInfo(DevicesBaseCols.EQType, Attributes.DeviceAttributes.EquipType, true); StatusComboBox.SetDBInfo(DevicesBaseCols.Status, Attributes.DeviceAttributes.StatusType, true); TrackableCheckBox.SetDBInfo(DevicesBaseCols.Trackable, false); POTextBox.SetDBInfo(DevicesBaseCols.PO, false); HostnameTextBox.SetDBInfo(DevicesBaseCols.HostName, false); iCloudTextBox.SetDBInfo(DevicesBaseCols.iCloudAccount, false); }
private void InitDBControls() { //Required Fields AssetTagTextBox.SetDBInfo(DevicesBaseCols.AssetTag, true); SerialTextBox.SetDBInfo(DevicesBaseCols.Serial, true); CurrentUserTextBox.SetDBInfo(DevicesBaseCols.CurrentUser, true); DescriptionTextBox.SetDBInfo(DevicesBaseCols.Description, true); PurchaseDatePicker.SetDBInfo(DevicesBaseCols.PurchaseDate, true); EquipTypeComboBox.SetDBInfo(DevicesBaseCols.EQType, Attributes.DeviceAttributes.EquipType, true); LocationComboBox.SetDBInfo(DevicesBaseCols.Location, Attributes.DeviceAttributes.Locations, true); OSVersionComboBox.SetDBInfo(DevicesBaseCols.OSVersion, Attributes.DeviceAttributes.OSType, true); StatusComboBox.SetDBInfo(DevicesBaseCols.Status, Attributes.DeviceAttributes.StatusType, true); //Non-required and Misc Fields PONumberTextBox.SetDBInfo(DevicesBaseCols.PO, false); ReplaceYearTextBox.SetDBInfo(DevicesBaseCols.ReplacementYear, false); PhoneNumberTextBox.SetDBInfo(DevicesBaseCols.PhoneNumber, false); GuidLabel.SetDBInfo(DevicesBaseCols.DeviceGuid, ParseType.DisplayOnly, false); TrackableCheckBox.SetDBInfo(DevicesBaseCols.Trackable, false); HostnameTextBox.SetDBInfo(DevicesBaseCols.HostName, false); iCloudTextBox.SetDBInfo(DevicesBaseCols.iCloudAccount, false); }
void ReleaseDesignerOutlets() { if (AdditionalInterestLabel != null) { AdditionalInterestLabel.Dispose(); AdditionalInterestLabel = null; } if (AddressComboBox != null) { AddressComboBox.Dispose(); AddressComboBox = null; } if (CashflowDateLabel != null) { CashflowDateLabel.Dispose(); CashflowDateLabel = null; } if (ChooseActionPopUp != null) { ChooseActionPopUp.Dispose(); ChooseActionPopUp = null; } if (ConractReceivedCheckBox != null) { ConractReceivedCheckBox.Dispose(); ConractReceivedCheckBox = null; } if (ExpectedAdditionalInterestTextField != null) { ExpectedAdditionalInterestTextField.Dispose(); ExpectedAdditionalInterestTextField = null; } if (ExpectedSalePriceTextField != null) { ExpectedSalePriceTextField.Dispose(); ExpectedSalePriceTextField = null; } if (RecordDatePicker != null) { RecordDatePicker.Dispose(); RecordDatePicker = null; } if (RepaymentAmountLabel != null) { RepaymentAmountLabel.Dispose(); RepaymentAmountLabel = null; } if (RepaymentAmountTextField != null) { RepaymentAmountTextField.Dispose(); RepaymentAmountTextField = null; } if (SaleDatePicker != null) { SaleDatePicker.Dispose(); SaleDatePicker = null; } if (SalePriceLabel != null) { SalePriceLabel.Dispose(); SalePriceLabel = null; } if (StatusMessageTextField != null) { StatusMessageTextField.Dispose(); StatusMessageTextField = null; } if (StatusTextField != null) { StatusTextField.Dispose(); StatusTextField = null; } if (StatusComboBox != null) { StatusComboBox.Dispose(); StatusComboBox = null; } if (LenderComboBox != null) { LenderComboBox.Dispose(); LenderComboBox = null; } }
public EditServiceLimitedView() { InitializeComponent(); StatusComboBox.Focus(); }