Exemplo n.º 1
0
 private void simpleButtonAdd_Click(object sender, EventArgs e)
 {
     var newAddSIPAccount = new AddSIPAccount();
     var dialog = new PopupDialog(newAddSIPAccount, "Add SIP Account");
     dialog.ShowDialog();
     if (newAddSIPAccount.SIPId > 0) {
         WaitDialog.Show("Loading Component...");
         LoadSIPAccount();
         WaitDialog.Close();
         MessageBox.Show("Successfully Saved!", "Bright Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
         gvSIPAccount.SelectRow("id", newAddSIPAccount.SIPId);
         WaitDialog.Close();
     }
 }
Exemplo n.º 2
0
        private void btnReAssignFollowUp_Click(object sender, EventArgs e)
        {
            if (gvFollowUp.RowCount < 1)
                return;

            var _item = gvFollowUp.GetFocusedRow() as CTCampaignFollowUp;
            if (_item == null)
                return;

            ReAssignFollowUp _control = new ReAssignFollowUp(_item.id);
            _control.AfterSave += new ReAssignFollowUp.AfterSaveEventHandler(_control_AfterSave);
            PopupDialog _popup = new PopupDialog();
            _popup.FormBorderStyle = FormBorderStyle.FixedSingle;
            _popup.MinimizeBox = false;
            _popup.MaximizeBox = false;
            _popup.StartPosition = FormStartPosition.CenterScreen;
            _popup.Text = "Re-assign follow-ups";
            _popup.Controls.Add(_control);
            _popup.ClientSize = new Size(_control.Width + 2, _control.Height + 2);
            _popup.ShowDialog(this.ParentForm);
        }
Exemplo n.º 3
0
        private void btnShowXmlViewConfig_Click(object sender, EventArgs e)
        {
            System.IO.StringWriter writer = new System.IO.StringWriter();
            DataTable dtTemp = dtColumnsInView.Copy();
            DataSet dsResult = new DataSet("view");
            dsResult.Tables.Add(dtTemp);
            dsResult.WriteXml(writer, XmlWriteMode.IgnoreSchema);
            var xmlConfig = writer.ToString();

            if (dtColumnsInView.Rows.Count <= 0) return;

            PopupDialog diag = new PopupDialog();
            MemoEdit memoEdit1 = new MemoEdit();
            memoEdit1.Text = xmlConfig;
            memoEdit1.DeselectAll();
            memoEdit1.Font = new System.Drawing.Font("Courier New", 10, FontStyle.Bold);
            memoEdit1.BackColor = Color.White;
            memoEdit1.Properties.ReadOnly = true;
            diag.Controls.Add(memoEdit1);
            memoEdit1.Dock = DockStyle.Fill;
            diag.Size = new Size(850, 600);
            diag.Text = "XML Configuration";
            diag.StartPosition = FormStartPosition.CenterScreen;
            diag.ShowDialog();
        }
Exemplo n.º 4
0
        private void btnEditUser_Click(object sender, EventArgs e)
        {
            if (gridViewUsers.RowCount < 1)
                return;

            WaitDialog.Show("Loading form.");
            this.SetFocusedViewInstance();
            m_objAddUserForm = new AddUser(AddUser.SaveType.SaveTypeEdit, m_objUser, true) {
                IsNew = false, // since there is no adding of internal user anymore, only editing ...
                UserType = AddUser.eUserType.InternalUser,
                objInternalUserControl = this
            };
            m_objAddUserForm.InitializeModule();

            m_objPopupDialog = new PopupDialog() {
                FormBorderStyle = FormBorderStyle.FixedSingle,
                MinimizeBox = false,
                MaximizeBox = false,
                StartPosition = FormStartPosition.CenterScreen,
                Text = "Manager Application - Users",
                ClientSize = new Size(m_objAddUserForm.Width + 2, m_objAddUserForm.Height + 2)
            };
            m_objPopupDialog.Controls.Add(m_objAddUserForm);

            WaitDialog.Close();
            m_objPopupDialog.ShowDialog(this.ParentForm);
            gridViewUsers.SelectRow("id", m_objAddUserForm.UserId);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Initializes the popup dialog for sub campaign entry and loads the popup dialog
        /// </summary>
        private void DisplaySubCampaignForm(bool IsNew)
        {
            if (IsNew)
            {
                m_objAddSubCampaignForm = new AddSubCampaign();
                m_objAddSubCampaignForm.isNew = true;
            }
            else
            {
                m_objAddSubCampaignForm = new AddSubCampaign(AddSubCampaign.SaveType.SaveTypeEdit, m_objSubCampaign);
                m_objAddSubCampaignForm.isNew = false;
            }

            m_OnEditMode = true;
            m_objAddSubCampaignForm.m_objParentControl = this;
            m_objPopupDialog = new PopupDialog();
            m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
            m_objPopupDialog.MinimizeBox = false;
            m_objPopupDialog.MaximizeBox = false;
            m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
            m_objPopupDialog.Text = "Manager Application - Sub Campaigns";
            m_objPopupDialog.Controls.Add(m_objAddSubCampaignForm);
            m_objPopupDialog.ClientSize = new Size(m_objAddSubCampaignForm.Width + 2, m_objAddSubCampaignForm.Height + 2);
            m_objPopupDialog.ShowDialog(this.ParentForm);
            m_OnEditMode = false;
        }
Exemplo n.º 6
0
        private void btnConfigureXml_Click(object sender, EventArgs e)
        {
            if (gvSubCampaign.RowCount < 1)
                return;

            WaitDialog.Show("Loading window...", true);
            this.SetFocusedViewInstance(eGridViewType.SubCampaign);
            EditorSubCampaignConfig objForm = new EditorSubCampaignConfig(m_objSubCampaign.id);
            objForm.SetLabel(String.Format("{0} > {1} > {2}", m_objSubCampaign.customer_name, m_objSubCampaign.campaign_name, m_objSubCampaign.sub_campaign_name));
            objForm.Dock = DockStyle.Fill;
            m_objPopupDialog = new PopupDialog();
            m_objPopupDialog.MinimizeBox = false;
            m_objPopupDialog.MaximizeBox = false;
            m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
            m_objPopupDialog.Text = "Configure Subcampaign Xml";
            m_objPopupDialog.ClientSize = new Size(objForm.Width + 2, objForm.Height + 2);
            m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
            m_objPopupDialog.Controls.Add(objForm);
            m_objPopupDialog.ShowDialog(this.ParentForm);
            WaitDialog.Close(true);
        }
Exemplo n.º 7
0
        private void simpleButtonEdit_Click(object sender, EventArgs e)
        {
            int selCount = gridSelection.SelectedCount;
            if (gridViewQuestion.RowCount < 1 || selCount == 0)
                return;

            WaitDialog.Show(ParentForm, "Loading components...");
            m_SelectedRowHandle = gridViewQuestion.FocusedRowHandle;
            popupDialog = new PopupDialog();
            popupDialog.Padding = new System.Windows.Forms.Padding(0);
            //Padding pads = popupDialog.Padding;
            //pads.Left = 5;
            popupDialog.ClientSize = new Size(1660, 980);
            //popupDialog.WindowState = FormWindowState.Maximized;
            popupDialog.StartPosition = FormStartPosition.CenterScreen;
            popupDialog.Text = "Edit Question";

            GridView view = gridViewQuestion;
            if (view != null || view.SelectedRowsCount > 0) {
                var ctqt = view.GetRow(view.GetSelectedRows()[0]) as CTQuestionTags;
                ucNewQuestion1 = new Modules.NewQuestions(ctqt.question_id);
                ucNewQuestion1.AfterSave += new NewQuestions.AfterSaveEventHandler(ucNewQuestion1_AfterSave);
            }

            //ucNewQuestion1.ParentControl = this;
            ucNewQuestion1.Dock = DockStyle.Fill;
            popupDialog.Controls.Add(ucNewQuestion1);
            //popupDialog.ClientSize = new Size(ucNewQuestion1.Width + 10, ucNewQuestion1.Height + 10);
            popupDialog.FormClosing += new FormClosingEventHandler(popupDialog_FormClosing);
            WaitDialog.Close();
            popupDialog.ShowDialog(this.ParentForm);
            gridSelection.ClearSelection();
        }
Exemplo n.º 8
0
 private void btnEditTag_Click(object sender, EventArgs e)
 {
     if (gridViewTags.SelectedRowsCount <= 0) {
         MessageBox.Show("Please select one or more tags first.", "Edit Tag", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
     dialog = new PopupDialog();
     dialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     dialog.MinimizeBox = false;
     dialog.MaximizeBox = false;
     dialog.StartPosition = FormStartPosition.CenterScreen;
     dialog.Text = "Edit Tag";
     ucAddTag = new AddTag(gridViewTags,BPContext);
     ucAddTag.AfterSave += new AddTag.AfterSaveEventHandler(ucAddTag_AfterSave);
     ucAddTag.EditMode = true;
     dialog.Controls.Add(ucAddTag);
     dialog.ClientSize = new Size(oTagSize.Width + 10, oTagSize.Height + 10);
     dialog.ShowDialog(this.ParentForm);
     //todo disable edit if multiple selection
 }
Exemplo n.º 9
0
 private void btnAddTag_Click(object sender, EventArgs e)
 {
     dialog = new PopupDialog();
     dialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     dialog.MinimizeBox = false;
     dialog.MaximizeBox = false;
     dialog.StartPosition = FormStartPosition.CenterScreen;
     dialog.Text = "Add New Tag";
     ucAddTag = new AddTag(gridViewTags, BPContext);
     ucAddTag.AfterSave += new AddTag.AfterSaveEventHandler(ucAddTag_AfterSave);
     ucAddTag.EditMode = false;
     dialog.Controls.Add(ucAddTag);
     dialog.ClientSize = new Size(oTagSize.Width + 10, oTagSize.Height + 10);
     //dialog.FormClosing += new FormClosingEventHandler(AddTag_FormClosing);
     dialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 10
0
 private void btnHelp_Click(object sender, EventArgs e)
 {
     SubCampaignConfigurationHelp _control = new SubCampaignConfigurationHelp() {
         Dock = DockStyle.Fill
     };
     PopupDialog _dlg = new PopupDialog() {
         MinimizeBox = false,
         MaximizeBox = false,
         StartPosition = FormStartPosition.CenterScreen,
         Text = "Sub Campaign Configuration Settings Keywords",
         FormBorderStyle = FormBorderStyle.FixedSingle
     };
     _dlg.ClientSize = new Size(_control.Width + 2, _control.Height + 2);
     _dlg.Controls.Add(_control);
     _dlg.ShowDialog(this.ParentForm);
 }
Exemplo n.º 11
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     AddSubCampaignConfigTemplate objForm = new AddSubCampaignConfigTemplate();
     objForm.AfterSave += new AddSubCampaignConfigTemplate.AfterSaveEventHandler(objForm_AfterSave);
     objForm.Dock = DockStyle.Fill;
     PopupDialog m_objPopupDialog = new PopupDialog();
     m_objPopupDialog.MinimizeBox = false;
     m_objPopupDialog.MaximizeBox = false;
     m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
     m_objPopupDialog.Text = "Add Sub-campaign Xml Config";
     m_objPopupDialog.ClientSize = new Size(objForm.Width + 2, objForm.Height + 2);
     m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     m_objPopupDialog.Controls.Add(objForm);
     m_objPopupDialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 12
0
        /// <summary>
        /// Initializes the popup dialog for campaign entry and loads the popup dialog
        /// </summary>
        private void DisplayCampaignForm(bool IsNew)
        {
            //if (IsNew)
            //{
            //    m_objAddCampaignForm = new AddCampaign();
            //    m_objAddCampaignForm.isNew = true;
            //}
            //else
            //{
            //    m_objAddCampaignForm = new AddCampaign(AddCampaign.SaveType.SaveTypeEdit, m_objCampaign);
            //    m_objAddCampaignForm.isNew = false;
            //}

            m_objAddCampaignForm = new AddCampaign(AddCampaign.SaveType.SaveTypeEdit, m_objCampaign);
            m_objAddCampaignForm.IsNew = false;
            m_objAddCampaignForm.CustomerId = m_objCustomer.id;
            m_objAddCampaignForm.m_objParentControl = this;
            m_objPopupDialog = new PopupDialog();
            m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
            m_objPopupDialog.MinimizeBox = false;
            m_objPopupDialog.MaximizeBox = false;
            m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
            m_objPopupDialog.Text = "Manager Application - Customers & Campaigns";
            m_objPopupDialog.Controls.Add(m_objAddCampaignForm);
            m_objPopupDialog.ClientSize = new Size(m_objAddCampaignForm.Width + 2, m_objAddCampaignForm.Height + 2);
            m_objPopupDialog.ShowDialog(this.ParentForm);
        }
Exemplo n.º 13
0
 private void btnNewTemplate_Click(object sender, EventArgs e)
 {
     AddReportTemplate _frm = new AddReportTemplate();
     PopupDialog _dlg = new PopupDialog();
     _frm.AfterSave += new AddReportTemplate.AfterSaveEventHandler(_frm_AfterSave);
     _dlg.FormBorderStyle = FormBorderStyle.FixedSingle;
     _dlg.MinimizeBox = false;
     _dlg.MaximizeBox = false;
     _dlg.StartPosition = FormStartPosition.CenterScreen;
     _dlg.Text = "Add Report Template";
     _dlg.Controls.Add(_frm);
     _dlg.ClientSize = new Size(_frm.Width + 2, _frm.Height + 2);
     _dlg.ShowDialog(this.ParentForm);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Display add language setting form
 /// </summary>
 private void DisplayAddLanguageSettingForm()
 {
     AddLanguageSetting objForm = new AddLanguageSetting(this);
     PopupDialog objPopupDialog = new PopupDialog();
     objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     objPopupDialog.MinimizeBox = false;
     objPopupDialog.MaximizeBox = false;
     objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
     objPopupDialog.Text = "Add Language Setting";
     objPopupDialog.Controls.Add(objForm);
     objPopupDialog.ClientSize = new Size(objForm.Width + 2, objForm.Height + 2);
     objPopupDialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 15
0
        private void simpleButtonEdit_Click(object sender, EventArgs e)
        {
            if (gvSIPAccount.RowCount < 1)
                return;

            var sipaccount = gvSIPAccount.GetFocusedRow() as sip_accounts;
            var EditSIPAccount = new AddSIPAccount(sipaccount.id);
            var dialog = new PopupDialog(EditSIPAccount, "Edit SIP EditSIPAccount");
            dialog.ShowDialog();
            if (sipaccount.id > 0) {
                WaitDialog.Show("Loading Component...");
                LoadSIPAccount();
                gvSIPAccount.SelectRow("id", sipaccount.id);
                WaitDialog.Close();
            }
        }
Exemplo n.º 16
0
        private void simpleButtonMultipleList_Click(object sender, EventArgs e)
        {
            EditorStringCollection oESCol = new EditorStringCollection();
            PopupDialog oPopupDiag = new PopupDialog();
            oPopupDiag.StartPosition = FormStartPosition.CenterScreen;
            oPopupDiag.Text = "String Collection Editor";
            oPopupDiag.ClientSize = new Size(oESCol.Width + 10, oESCol.Height + 10);
            oPopupDiag.MinimumSize = new Size(oESCol.Width + 10, oESCol.Height + 10);
            oESCol.Dock = DockStyle.Fill;
            oPopupDiag.Controls.Add(oESCol);
            if (oPopupDiag.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
                return;

            string[] stringCol = oESCol.StringCollection.Lines;
            if (stringCol != null && stringCol.Length > 0) {
                PropertyInfo pi = answerOptionList[SelectedIndex].MultipleChoiceValues.GetType().GetProperty("Item");
                stringCol = string.Join(",", stringCol).Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                foreach (string str in stringCol) {
                    var instance = Activator.CreateInstance(pi.PropertyType) as MultipleChoiceValue;
                    instance.TextPrefix = str;
                    answerOptionList[SelectedIndex].MultipleChoiceValues.Add(instance);
                }
                listBoxControlMembers.Refresh();
                listBoxControlMembers.SelectedIndex = answerOptionList[SelectedIndex].MultipleChoiceValues.Count - 1;
            }
        }
Exemplo n.º 17
0
        private void simpleButtonAssignAnswerForm_Click(object sender, EventArgs e)
        {
            Cursor currentCursor = Cursor.Current;
            Cursor.Current = Cursors.WaitCursor;
            GridView view = gridViewDialog;
            view.GridControl.Focus();
            int index = view.FocusedRowHandle;
            if (index < 0) return;

            var row = view.GetDataRow(index);
            if (row != null) {
                popupDialog = new PopupDialog();
                popupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
                popupDialog.MinimizeBox = false;
                popupDialog.MaximizeBox = false;
                popupDialog.StartPosition = FormStartPosition.CenterScreen;

                int questionid = Convert.ToInt32(row["question_id"]);
                var ucAddAnswerform = new AddAnswerForm(questionid, gridViewDialog, btnCreateSchedule);
                Size oSize = ucAddAnswerform.Size;
                ucAddAnswerform.Dock = DockStyle.Fill;

                popupDialog.Text = "Select Answer Form";
                popupDialog.Controls.Add(ucAddAnswerform);
                popupDialog.ClientSize = new Size(oSize.Width + 10, oSize.Height + 10);
                popupDialog.ShowDialog(this.ParentForm);
            }
            Cursor.Current = currentCursor;
        }
Exemplo n.º 18
0
        private void simpleButtonCloneDialog_Click(object sender, EventArgs e)
        {
            GridView view = gridViewDialog;
            if (view == null || view.SelectedRowsCount <= 0) {
                MessageBox.Show("Please select a dialog to clone first.","Clone Dialog",  MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            WaitDialog.Show(ParentForm, "Loading components...");
            popupDialog = new PopupDialog();
            popupDialog.MaximizeBox = false;
            popupDialog.MinimizeBox = false;
            popupDialog.StartPosition = FormStartPosition.CenterScreen;
            popupDialog.Text = "Enter New Dialog Details";

            var ctscd = view.GetRow(view.GetSelectedRows()[0]) as CTSubCampaignDialogs;
            dialog objDiag = BPContext.dialogs.FirstOrDefault(p => p.id == ctscd.DialogID);
            promptDialog1 = new PromptDialog(objDiag);
            promptDialog1.ParentController = ParentController;
            popupDialog.ClientSize = new Size(promptDialog1.Width + 10, promptDialog1.Height + 10);
            promptDialog1.Dock = DockStyle.Fill;
            popupDialog.Controls.Add(promptDialog1);
            WaitDialog.Close();
            popupDialog.ShowDialog(this.ParentForm);
        }
Exemplo n.º 19
0
 private void btnEditQuestion_Click(object sender, EventArgs e)
 {
     dialog = new PopupDialog();
     dialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     dialog.MinimizeBox = false;
     dialog.MaximizeBox = false;
     dialog.StartPosition = FormStartPosition.CenterScreen;
     dialog.Text = "Edit Question";
     ucAddQuestion = new AddQuestion(gridViewQuestion,QuestionID);
     ucAddQuestion.EditMode = true;
     ucAddQuestion.Dock = DockStyle.Fill;
     dialog.Controls.Add(ucAddQuestion);
     dialog.ClientSize = new Size(oQuestionSize.Width + 10, oQuestionSize.Height + 10);
     dialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 20
0
        /// <summary>
        /// Initializes the popup dialog for user entry
        /// </summary>
        private void DisplayUserForm(bool IsNew)
        {
            WaitDialog.Show(ParentForm, "Loading components...");
            if (IsNew)
            {
                m_objAddUserForm = new AddUser();
                m_objAddUserForm.IsNew = true;
            }
            else
            {
                m_objAddUserForm = new AddUser(AddUser.SaveType.SaveTypeEdit, m_objUser);
                m_objAddUserForm.IsNew = false;
            }

            m_objAddUserForm.UserType = AddUser.eUserType.CustomerUser;
            m_objAddUserForm.InitializeModule();
            m_objAddUserForm.objCustomerUserControl = this;
            PopupDialog m_objPopupDialog = new PopupDialog();
            m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
            m_objPopupDialog.MinimizeBox = false;
            m_objPopupDialog.MaximizeBox = false;
            m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
            m_objPopupDialog.Text = "Manager Application - Users";
            m_objPopupDialog.Controls.Add(m_objAddUserForm);
            m_objPopupDialog.ClientSize = new Size(m_objAddUserForm.Width + 2, m_objAddUserForm.Height + 2);
               WaitDialog.Close();
            m_objPopupDialog.ShowDialog(this.ParentForm);
        }
Exemplo n.º 21
0
 private void simpleButtonAdd_Click(object sender, EventArgs e)
 {
     WaitDialog.Show(ParentForm, "Loading components...");
     popupDialog = new PopupDialog();
     //Padding pads = popupDialog.Padding;
     //pads.Left = 5;
     //popupDialog.WindowState = FormWindowState.Maximized;
     popupDialog.Padding = new System.Windows.Forms.Padding(0);
     popupDialog.StartPosition = FormStartPosition.CenterScreen;
     popupDialog.Text = "Add Question";
     ucNewQuestion1 = new Modules.NewQuestions();
     ucNewQuestion1.AfterSave += new NewQuestions.AfterSaveEventHandler(ucNewQuestion1_AfterSave);
     //ucNewQuestion1.ParentControl = this;
     ucNewQuestion1.Dock = DockStyle.Fill;
     popupDialog.Controls.Add(ucNewQuestion1);
     popupDialog.ClientSize = new Size(1660, 980);
     //popupDialog.ClientSize = new Size(ucNewQuestion1.Width + 10, ucNewQuestion1.Height + 10);
     //popupDialog.FormClosing += new FormClosingEventHandler(popupDialog_FormClosing);
     WaitDialog.Close();
     popupDialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 22
0
 /// <summary>
 /// Display edit import file form
 /// </summary>
 private void DisplayEditImportFileForm()
 {
     this.Cursor = Cursors.WaitCursor;
     this.SetFocusedViewInstance();
     EditImportFile objFrmImportFile = new EditImportFile(this.m_objImportList);
     objFrmImportFile.objParentControl = this;
     m_objPopupDialog = new PopupDialog();
     m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     m_objPopupDialog.MinimizeBox = false;
     m_objPopupDialog.MaximizeBox = false;
     m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
     m_objPopupDialog.Text = m_MessageBoxCaption;
     m_objPopupDialog.Controls.Add(objFrmImportFile);
     m_objPopupDialog.ClientSize = new Size(objFrmImportFile.Width + 2, objFrmImportFile.Height + 2);
     m_objPopupDialog.ShowDialog(this.ParentForm);
     this.Cursor = Cursors.Default;
 }
Exemplo n.º 23
0
        private void btnConfigureNurtureList_Click(object sender, EventArgs e)
        {
            if (gvSubCampaign.RowCount < 1)
                return;

            int _CustomerId = Convert.ToInt32(gvSubCampaign.GetRowCellValue(gvSubCampaign.FocusedRowHandle, "customer_id"));
            int _CampaignId = Convert.ToInt32(gvSubCampaign.GetRowCellValue(gvSubCampaign.FocusedRowHandle, "campaign_id"));
            int _SubCampaignId = Convert.ToInt32(gvSubCampaign.GetRowCellValue(gvSubCampaign.FocusedRowHandle, "id"));
            EditorNurtureSetting _control = new EditorNurtureSetting(_CustomerId, _CampaignId, _SubCampaignId) {
                Dock = DockStyle.Fill
            };
            PopupDialog _dlg = new PopupDialog() {
                MinimizeBox = false,
                MaximizeBox = false,
                StartPosition = FormStartPosition.CenterScreen,
                Text = "Select Sub Campaign Nurture List",
                FormBorderStyle = FormBorderStyle.FixedSingle
            };
            _dlg.ClientSize = new Size(_control.Width + 2, _control.Height + 2);
            _dlg.Controls.Add(_control);
            _dlg.Focus();
            _dlg.ShowDialog(this.ParentForm);
        }
Exemplo n.º 24
0
 /// <summary>
 /// Display new import form
 /// </summary>
 private void DisplayNewImportForm()
 {
     m_objFrmNewImport = new NewImport();
     m_objFrmNewImport.m_objUserControl = this;
     m_objPopupDialog = new PopupDialog();
     m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     m_objPopupDialog.MinimizeBox = false;
     m_objPopupDialog.MaximizeBox = false;
     m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
     m_objPopupDialog.Text = m_MessageBoxCaption;
     m_objPopupDialog.Controls.Add(m_objFrmNewImport);
     m_objPopupDialog.ClientSize = new Size(m_objFrmNewImport.Width + 2, m_objFrmNewImport.Height + 2);
     m_objPopupDialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 25
0
        private void btnSendEmailTemplate_Click(object sender, EventArgs e)
        {
            if (gvSubCampaign.RowCount < 1)
                return;

            int _SubCampaignId = Convert.ToInt32(gvSubCampaign.GetRowCellValue(gvSubCampaign.FocusedRowHandle, "id"));
            SendEmailTemplate _control = new SendEmailTemplate(_SubCampaignId) {
                Dock = DockStyle.Fill
            };
            PopupDialog _dlg = new PopupDialog() {
                MinimizeBox = false,
                MaximizeBox = false,
                StartPosition = FormStartPosition.CenterScreen,
                Text = "Send Email Template",
                FormBorderStyle = FormBorderStyle.FixedSingle
            };
            _dlg.ClientSize = new Size(_control.Width + 2, _control.Height + 2);
            _dlg.Controls.Add(_control);
            _dlg.ShowDialog(this.ParentForm);
        }
Exemplo n.º 26
0
        private void cmdCreateCollectedData_Click(object sender, EventArgs e)
        {
            if (gvMatchingCompany.RowCount < 1)
                return;

            DialogResult objChoice = MessageBox.Show("Are you sure to generate collected data records for this selected import file?", "Import File", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (objChoice == DialogResult.No)
                return;

            if (m_objImportList == null)
                return;
            else if (m_objImportList.id < 1)
                return;

            //
            //WaitDialog.Show(ParentForm, "Creating collected data.");
            //ObjectImport.CreateImportListCollectedData(m_objImportList.id);
            ImportCollectedData objImportCollectedData = new ImportCollectedData();
            objImportCollectedData.ImportFileId = m_objImportList.id;
            objImportCollectedData.CustomerId = m_objImportList.customer_id == null ? 0 : m_objImportList.customer_id;
            m_objPopupDialog = new PopupDialog();
            m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
            m_objPopupDialog.MinimizeBox = false;
            m_objPopupDialog.MaximizeBox = false;
            m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
            m_objPopupDialog.Text = "Import File Collected Data";
            m_objPopupDialog.Controls.Add(objImportCollectedData);
            m_objPopupDialog.ClientSize = new Size(objImportCollectedData.Width + 2, objImportCollectedData.Height + 2);
            m_objPopupDialog.ShowDialog(this.ParentForm);
            //WaitDialog.Close();
        }
Exemplo n.º 27
0
 /// <summary>
 /// Initializes the popup dialog for sub campaign internal user entry and loads the popup dialog
 /// </summary>
 private void DisplaySubCampaignInternalUserForm()
 {
     AddInternalUser m_objAddSubCampaignInternalUserForm = new AddInternalUser(m_objSubCampaign.id);
     m_objAddSubCampaignInternalUserForm.UsersNotIncluded = GetUserInCampaign();
     m_objAddSubCampaignInternalUserForm.AfterSave += new AddInternalUser.AfterSaveEventHandler(m_objAddSubCampaignInternalUserForm_AfterSave);
     //m_objAddSubCampaignInternalUserForm.m_objParentControl = this;
     m_objPopupDialog = new PopupDialog();
     m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
     m_objPopupDialog.MinimizeBox = false;
     m_objPopupDialog.MaximizeBox = false;
     m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
     m_objPopupDialog.Text = "Add Internal User";
     m_objPopupDialog.Controls.Add(m_objAddSubCampaignInternalUserForm);
     m_objPopupDialog.ClientSize = new Size(m_objAddSubCampaignInternalUserForm.Width + 2, m_objAddSubCampaignInternalUserForm.Height + 2);
     m_objPopupDialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 28
0
 private void DisplayAddTitleSettingForm(bool isEditMode)
 {
     AddTitleSetting objForm = new AddTitleSetting(gvTitle, isEditMode);
     PopupDialog objPopupDialog = new PopupDialog() {
         FormBorderStyle = FormBorderStyle.FixedSingle,
         MinimizeBox = false,
         MaximizeBox = false,
         StartPosition = FormStartPosition.CenterScreen,
         Text = !isEditMode ? "Add Title" : "Update Title"
     };
     objPopupDialog.Controls.Add(objForm);
     objPopupDialog.ClientSize = new Size(objForm.Width + 2, objForm.Height + 2);
     objPopupDialog.ShowDialog(this.ParentForm);
 }
Exemplo n.º 29
0
 private void cmdAddCompany_Click(object sender, EventArgs e)
 {
     WaitDialog.Show(ParentForm, "Loading...");
     AddSubCampaignAccount _ucSubCampaignAccount = new AddSubCampaignAccount();
     PopupDialog _dlgPopup = new PopupDialog();
     _ucSubCampaignAccount.ParentController = this;
     _dlgPopup.FormBorderStyle = FormBorderStyle.FixedSingle;
     _dlgPopup.MinimizeBox = false;
     _dlgPopup.MaximizeBox = false;
     _dlgPopup.StartPosition = FormStartPosition.CenterScreen;
     _dlgPopup.Text = "Add Companies";
     _dlgPopup.Controls.Add(_ucSubCampaignAccount);
     _dlgPopup.ClientSize = new Size(_ucSubCampaignAccount.Width + 2, _ucSubCampaignAccount.Height + 2);
     WaitDialog.Close();
     _dlgPopup.ShowDialog(this.ParentForm);
 }
Exemplo n.º 30
0
        private void LoadUserLoginForm()
        {
            m_objPopupDialog = new PopupDialog();

            m_objFrmUserLogin = new UserLogin(m_objPopupDialog);
            m_objFrmUserLogin.m_objParentForm = this;
            m_objPopupDialog.IsLogin = true;
            m_objPopupDialog.FormBorderStyle = FormBorderStyle.FixedSingle;
            m_objPopupDialog.MinimizeBox = false;
            m_objPopupDialog.MaximizeBox = false;
            m_objPopupDialog.StartPosition = FormStartPosition.CenterScreen;
            m_objPopupDialog.Text = "Login to Manager Application";
            m_objPopupDialog.Controls.Add(m_objFrmUserLogin);
            m_objPopupDialog.ClientSize = new Size(m_objFrmUserLogin.Width, m_objFrmUserLogin.Height);
            m_objPopupDialog.FormClosed += new FormClosedEventHandler(m_objPopupDialog_FormClosed);
            m_objPopupDialog.ShowDialog(this.ParentForm);
        }