Example #1
0
        public App()
        {
            InitializeComponent();

            //MainPage = new MainPage();
            MainPage = new ViewDisplay();
        }
Example #2
0
        private void InitReports()
        {
            if (pnlReports.Controls.Count > 0 && m_ReportConfigurationId < 1)
                return;

            WaitDialog.Show(this, "Loading components ...");
            pnlReports.Controls.Clear();

            if (m_ReportConfigurationId > 0)
                m_ReportModule = new ViewDisplay(m_ReportConfigurationId);
            else
                m_ReportModule = new ViewDisplay();

            m_ReportModule.Dock = DockStyle.Fill;
            pnlReports.Controls.Add(m_ReportModule);
            WaitDialog.Close();
        }
Example #3
0
        private void barButtonLogout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (this.CampaignBooking_DialogEditor_OnEditMode())
                return;

            if (m_BrightSalesProperty.CommonProperty.OnCallMode) {
                NotificationDialog.Information("Bright Sales", "Call is already in progress. Please hang-up and save call log first.");
                return;
            }
            else if (!m_BrightSalesProperty.CommonProperty.CallLogSaved) {
                NotificationDialog.Error("Bright Sales", "Please kindly save your call log first.");
                return;
            }

            if (m_CampaignBookingModule != null)
                m_CampaignBookingModule.SaveCampaignBooking();

            if (!this.LogoutApplication())
                return;

            //m_CampaignListModule.ReleaseCurrentCompanyLock();
            Business.ObjectLocking.ReleaseUserLock();
            this.Hide();
            m_LogoutInitiated = true;
            m_CampaignListModule = null;
            m_MyFollowUpModule = null;
            m_CampaignBookingModule = null;
            m_ReportModule = null;
            pcCampaignBooking.Controls.Clear();
            pnlMyFollowups.Controls.Clear();
            pnlReports.Controls.Clear();

            m_oCallLogBar.EndClock();
            m_oCallLogBar.Default();
            m_oCallLogBar.UnRegisterPhone();
            m_oCallViewBar.PhoneCallEnded();
            m_oCallViewBar.Default();
            m_oFollowUpBar.Clear();
            this.SetStateCallerBarGroup(false);

            //m_oCallLogBar.Default();
            //m_oCallViewBar.Default();
            //m_oCallLogBar.Visible = false;
            //m_oCallViewBar.Visible = true;
            //pnlToggleBar.Enabled = false;
            //btnOpenFollowUpWindow.Enabled = false;
            m_BrightSalesProperty.CommonProperty.SubCampaignId = 0;
            tcSalesConsultant.SelectedTabPage = tabCampaignList;
            this.SetFormControls(false);
            this.LoadUserLoginForm();
            m_LogoutInitiated = false;
        }
 /// <summary>Sets display filter on the selected views</summary>
 /// <param name="viewDisplay">Data with display settings</param>
 public void SetViewDisplayOfSelectedViews(ViewDisplay viewDisplay)
 {
     viewDisplay.SetDisplayOfSelectedViews();
 }