/// <summary> /// get the staffs from the database and set the staffs in the public variables /// </summary> private void UpdateTheStaffsFromTheDatabase() { Staffs = null; Staffs = GlobalConfig.Connection.GetStaffs(); PublicVariables.Staffs = null; PublicVariables.Staffs = Staffs; Staffs.RemoveAt(0); }
/// <summary> /// 担当者情報の編集 /// </summary> /// <param name="staff">担当者情報</param> public void EditStaff(Staff staff) { int index = Staffs.IndexOf(SelectedStaff); if (index > -1) { Staffs.RemoveAt(index); Staffs.Insert(index, staff); } }