Пример #1
0
        private void CurrentMembersGridBox_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            MemberForm mf = new MemberForm(congo.Id, false, true, true, this);

            mf.WindowState = FormWindowState.Normal;
            mf.Show();
        }
Пример #2
0
        private void AddMembers_Click(object sender, EventArgs e)
        {
            MemberForm mf = new MemberForm(congo.Id, false, true, false, this);

            mf.WindowState = FormWindowState.Normal;
            mf.Show();
        }
Пример #3
0
 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();
     }
 }
Пример #4
0
 private void CurrentMembersGridBox_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     MemberForm mf = new MemberForm(congo.Id,false,true,true,this);
     mf.WindowState = FormWindowState.Normal;
     mf.Show();
 }
Пример #5
0
 private void AddMembers_Click(object sender, EventArgs e)
 {
     MemberForm mf = new MemberForm(congo.Id, false, true,false,this);
     mf.WindowState = FormWindowState.Normal;
     mf.Show();
 }
Пример #6
0
        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();
            }
        }