/// <summary> /// Populates Augments into the augment list /// </summary> public void PopulateAugmentList() { Augment_List.DataSource = BaseAugmentList(); Augment_List.DisplayMember = "Info"; Augment_List.ValueMember = null; Augment_List.ClearSelected(); }
/// <summary> /// Clears most of the screen /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void New_Button_Click(object sender, EventArgs e) { ObjectList.SelectedItems.Clear(); Type_Combo.SelectedIndex = 0; Augment_List.ClearSelected(); Focus_Combo.SelectedIndex = 0; PaidCheck.CheckState = CheckState.Unchecked; qtyNum.Value = 1; Name_Text.Text = ""; Notes_Text.Text = ""; DaysComplete_Text.Text = "0"; RespawnTempObject(); TempObject.Object = (Models.BaseObject)Type_Combo.SelectedValue; TempObject.Augmentations = Augment_List.SelectedItems.OfType <Models.Base_Augmentation>().ToList(); TempObject.ActiveResource = (Models.BaseResource)Focus_Combo.SelectedValue; }