/// <summary> /// Load all form info /// </summary> public override void Reload() { UIMethods.FillListControl(cmbClass, "Class", "ClassID", LoadFormData.ClassNames()); UIMethods.FillListControl(cmbPrimary, "Colour", "ColourID", LoadFormData.ColourNames()); UIMethods.FillListControl(cmbSecondary, "Colour", "ColourID", LoadFormData.ColourNames(), true); UIMethods.FillListControl(lstBreeds, "Breed", "BreedID", LoadFormData.BreedNames()); }
/// <summary> /// Load all form info /// </summary> public override void Reload() { UIMethods.FillListControl(cmbSelectOwner, "OwnerName", "OwnerID", LoadFormData.OwnerNamesCombined()); currentID = Convert.ToInt32(OwnerNavigation()["FirstID"]); LoadOwnerDetails(); UIMethods.DisplayStatusMessage(((MDIParent)MdiParent).GetStatusLabel(), "Owners loaded"); }
/// <summary> /// Fill the dogs list with the dogs that competed in the selected dog show /// </summary> private void LoadDogShowDetails() { GetUserData(); cmbDogs.SelectedIndex = 0; UIMethods.FillListControl(lstDogs, "Dog", "DogID", LoadFormData.DogShowDogs(dogShowID)); LoadDogShowDogsCount(); }
/// <summary> /// Load all form info /// </summary> public override void Reload() { UIMethods.FillListControl(cmbClass, "Class", "ClassID", LoadFormData.ClassNames()); UIMethods.FillListControl(cmbPrimary, "Colour", "ColourID", LoadFormData.ColourNames()); UIMethods.FillListControl(cmbSecondary, "Colour", "ColourID", LoadFormData.ColourNames(), true); UIMethods.FillListControl(lstBreeds, "Breed", "BreedID", LoadFormData.BreedNames()); UIMethods.DisplayStatusMessage(((frmMDIParent)MdiParent).GetStatusLabel(), "Breeds info loaded"); }
/// <summary> /// Load all form info /// </summary> public override void Reload() { UIMethods.FillListControl(cmbBreed, "Breed", "BreedID", LoadFormData.BreedNames()); UIMethods.FillListControl(cmbSearchBreed, "Breed", "BreedID", LoadFormData.BreedNames(), true); UIMethods.FillListControl(cmbOwner, "OwnerName", "OwnerID", LoadFormData.OwnerNamesCombined()); UIMethods.FillListControl(lstDogs, "Name", "DogID", LoadFormData.DogNames()); UIMethods.DisplayStatusMessage(((frmMDIParent)MdiParent).GetStatusLabel(), "Dogs info loaded"); }
/// <summary> /// Get the information on the selected dog /// </summary> private void GetDogDetails() { int id = Convert.ToInt32(lstDogs.SelectedValue); string sql = $"SELECT * FROM Dogs WHERE DogID = {id};"; DataRow row = DatabaseHelper.GetDataRow(sql); string name = row["Name"].ToString(); bool isMale = Convert.ToBoolean(row["Sex"]); double weight = Convert.ToDouble(row["Weight"]); double height = Convert.ToDouble(row["Height"]); DateTime dob = Convert.ToDateTime(row["DOB"]); UIMethods.PickDateTimePicker(dtpDateOfRetirement, row["DateOfRetirement"]); bool retired = Convert.ToBoolean(row["Retired"]); bool champion = Convert.ToBoolean(row["Champion"]); UIMethods.PickDateTimePicker(dtpChampionshipDate, row["DateOfChampionship"]); bool banned = Convert.ToBoolean(row["PermanentlyDisqualified"]); UIMethods.PickDateTimePicker(dtpDateBanned, row["DateOfDisqualification"]); int breedID = Convert.ToInt32(row["Breed"]); int ownerID = LoadFormData.GetCurrentOwnerOfDog(id); txtID.Text = id.ToString(); txtName.Text = name.ToString(); rdoMale.Checked = isMale; rdoFemale.Checked = !isMale; txtWeight.Text = weight.ToString("N1"); txtHeight.Text = height.ToString("N1"); dtpDateOfBirth.Value = dob; chkRetired.Checked = retired; chkChampion.Checked = champion; chkBanned.Checked = banned; cmbBreed.SelectedValue = breedID; cmbOwner.SelectedValue = ownerID; PopulateDogShows(); UIMethods.DisplayStatusMessage(((frmMDIParent)MdiParent).GetStatusLabel(), "Dog info loaded"); }
/// <summary> /// Load form data /// </summary> public override void Reload() { UIMethods.FillListControl(lstOwners, "OwnerName", "OwnerID", LoadFormData.OwnerNamesCombined()); }
/// <summary> /// Load Form data /// </summary> public override void Reload() { UIMethods.FillListControl(cmbDogs, "Name", "DogID", LoadFormData.DogNames()); UIMethods.FillListControl(cmbOwners, "OwnerName", "OwnerID", LoadFormData.OwnerNamesCombined()); }
public void ReloadSizeReports() { PopulateSizeReports(LoadFormData.LoadSizeForms()); }
/// <summary> /// Fill the dogs list with the dogs that competed in the selected dog show /// </summary> private void GetDogs() { int id = Convert.ToInt32(cmbDogShows.SelectedValue); UIMethods.FillListControl(lstDogs, "Dog", "DogID", LoadFormData.DogShowDogs(id)); }
/// <summary> /// Load form Data /// </summary> public override void Reload() { UIMethods.FillListControl(lstClasses, "Class", "ClassID", LoadFormData.ClassNames()); UIMethods.DisplayStatusMessage(((frmMDIParent)MdiParent).GetStatusLabel(), "Classes loaded"); }
/// <summary> /// Load all of the form data /// </summary> public override void Reload() { UIMethods.FillListControl(cmbSelectedDogShow, "Name", "DogShowID", LoadFormData.DogShowNames()); }
/// <summary> /// Load the form info /// </summary> public override void Reload() { UIMethods.FillListControl(cmbDogToUpdate, "Name", "DogID", LoadFormData.DogNames()); UIMethods.FillListControl(cmbBreed, "Breed", "BreedID", LoadFormData.BreedNames()); }
/// <summary> /// Fill the breed and search breed comboboxes /// </summary> private void PopulateBreedsList() { UIMethods.FillListControl(cmbBreed, "Breed", "BreedID", LoadFormData.BreedNames(), true); }
/// <summary> /// Load all of the form data /// </summary> public override void Reload() { UIMethods.FillListControl(cmbDogs, "Name", "DogID", LoadFormData.DogNames(), true); UIMethods.FillListControl(cmbDogShow, "Name", "DogShowID", LoadFormData.DogShowNames()); }
public void ReloadTimeReports() { PopulateTimeReports(LoadFormData.LoadTimeForms()); }
/// <summary> /// Load all form info /// </summary> public override void Reload() { UIMethods.FillListControl(cmbDogShows, "Name", "DogShowID", LoadFormData.DogShowNames()); UIMethods.DisplayStatusMessage(((frmMDIParent)MdiParent).GetStatusLabel(), "Dog shows loaded"); }