private void oSchedule_ShowCalendarBookingClick(object sender, EventArgs e) { Schedule obj = sender as Schedule; if (obj == null) return; objScheduleComponent = obj; frmSchedulingPopup = new FrmSchedulingPopup(); frmSchedulingPopup.SetBreadCrumb(BreadCrumbText); frmSchedulingPopup.CurrentScheduleID = obj.CurrentSelectedMeeting; if (SelectedContact != null) frmSchedulingPopup.CurrentContactID = SelectedContact.id; frmSchedulingPopup.CurrentAccountID = AccountId; frmSchedulingPopup.SubCampaignID = SubCampaignId; frmSchedulingPopup.ShowDialog(); if (frmSchedulingPopup.CreatedScheduleID > 0) { obj.SetCreatedMeetingSchedule(frmSchedulingPopup.CreatedScheduleID); obj.Questionnaire.Form.Settings.DataBindings.schedule_id = frmSchedulingPopup.CreatedScheduleID.ToString(); } obj.RefreshSchedMeetingList(); }
private void oSchedule_ShowCalendarBookingClick(object sender, EventArgs e) { var obj = sender as Schedule; if (obj != null) { objScheduleComponent = obj; //WaitDialog.CreateWaitDialog("Loading Schedule Dialog..."); frmSchedulingPopup = new FrmSchedulingPopup(); frmSchedulingPopup.SetBreadCrumb(simpleLabelItemBreadCrumb.Text); frmSchedulingPopup.CurrentScheduleID = obj.CurrentSelectedMeeting; if(m_oContactView.SelectedContact != null) frmSchedulingPopup.CurrentContactID = m_oContactView.SelectedContact.id; frmSchedulingPopup.CurrentAccountID = oAppointment.AccountId; //frmSchedulingPopup.AccountID = oAppointment.AccountId; //frmSchedulingPopup.ContactID = m_oContactView.SelectedContact.id; frmSchedulingPopup.SubCampaignID = oAppointment.SubCampaignId; if (frmSchedulingPopup.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (frmSchedulingPopup.CreatedScheduleID > 0) { obj.SetCreatedMeetingSchedule(frmSchedulingPopup.CreatedScheduleID); obj.Questionnaire.Form.Settings.DataBindings.schedule_id = frmSchedulingPopup.CreatedScheduleID.ToString(); } } } }