コード例 #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();
            }
        }