private void CurrentMembersGridBox_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { MemberForm mf = new MemberForm(congo.Id, false, true, true, this); mf.WindowState = FormWindowState.Normal; mf.Show(); }
private void AddMembers_Click(object sender, EventArgs e) { MemberForm mf = new MemberForm(congo.Id, false, true, false, this); mf.WindowState = FormWindowState.Normal; mf.Show(); }
private void CreatorUpdateButton_Click(object sender, EventArgs e) { if (NewCongregationRadioButton.Checked == true) { Congregation newCongo = manager.CreateCongregation(CongregationNameTextBox.Text, AddressTextBox.Text, CityTextBox.Text, StateTextBox.Text, ZipTextBox.Text, WeekMeetingDayComboBox.SelectedItem.ToString(), WeekMeetingHourPicker.Value.ToString() + ":" + WeekMeetingMinutePicker.Value.ToString(), PublicMeetingDayComboBox.SelectedItem.ToString(), PublicMeetingHourPicker.Value.ToString() + ":" + PublicMeetingMinutePicker.Value.ToString()); MemberForm newMember = new MemberForm(newCongo.Id, true, false, false, null); newMember.WindowState = FormWindowState.Normal; this.Close(); newMember.Show(); } else { manager.UpdateCongregation(Convert.ToInt32(CongregationIdLabel.Text), CongregationNameTextBox.Text, AddressTextBox.Text, CityTextBox.Text, StateTextBox.Text, ZipTextBox.Text, WeekMeetingDayComboBox.SelectedItem.ToString(), WeekMeetingHourPicker.Value.ToString() + ":" + WeekMeetingMinutePicker.Value.ToString(), PublicMeetingDayComboBox.SelectedItem.ToString(), PublicMeetingHourPicker.Value.ToString() + ":" + PublicMeetingMinutePicker.Value.ToString()); MessageBox.Show("Congregation Updated"); this.Close(); } }
private void CurrentMembersGridBox_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { MemberForm mf = new MemberForm(congo.Id,false,true,true,this); mf.WindowState = FormWindowState.Normal; mf.Show(); }
private void AddMembers_Click(object sender, EventArgs e) { MemberForm mf = new MemberForm(congo.Id, false, true,false,this); mf.WindowState = FormWindowState.Normal; mf.Show(); }
private void CreatorUpdateButton_Click(object sender, EventArgs e) { if(NewCongregationRadioButton.Checked==true) { Congregation newCongo = manager.CreateCongregation(CongregationNameTextBox.Text, AddressTextBox.Text, CityTextBox.Text, StateTextBox.Text, ZipTextBox.Text, WeekMeetingDayComboBox.SelectedItem.ToString(), WeekMeetingHourPicker.Value.ToString() + ":" + WeekMeetingMinutePicker.Value.ToString(), PublicMeetingDayComboBox.SelectedItem.ToString(), PublicMeetingHourPicker.Value.ToString() + ":" + PublicMeetingMinutePicker.Value.ToString()); MemberForm newMember = new MemberForm(newCongo.Id,true,false,false,null); newMember.WindowState = FormWindowState.Normal; this.Close(); newMember.Show(); } else { manager.UpdateCongregation(Convert.ToInt32(CongregationIdLabel.Text), CongregationNameTextBox.Text, AddressTextBox.Text, CityTextBox.Text, StateTextBox.Text, ZipTextBox.Text, WeekMeetingDayComboBox.SelectedItem.ToString(), WeekMeetingHourPicker.Value.ToString() + ":" + WeekMeetingMinutePicker.Value.ToString(), PublicMeetingDayComboBox.SelectedItem.ToString(), PublicMeetingHourPicker.Value.ToString() + ":" + PublicMeetingMinutePicker.Value.ToString()); MessageBox.Show("Congregation Updated"); this.Close(); } }