/// <summary> /// This event add a new member to a given crew /// It calls the method that adds a new crew member to a crew /// It refreshes the list of current crews /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void EmployeeGridView_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "AddMember") { InfoUserControl.TryRun(() => { CrewController crewManager = new CrewController(); crewManager.AddCrewMember(int.Parse(CrewID.Text), int.Parse(e.CommandArgument.ToString())); RefreshCurrentCrews(); }); } }