private void ShowQuickStartWizard(bool firstTime, bool quitOnCancel)
        {
            if (!firstTime)
            {
                this.Hide();
                LoadViewControl(new SummaryView());
            }

            Forms.QuickStartForm qsForm = new CallButler.Manager.Forms.QuickStartForm(this, firstTime);

            if (qsForm.ShowDialog() != DialogResult.OK)
            {
                if (quitOnCancel)
                {
                    Environment.Exit(1);
                }
            }
            else
            {
                ManagementInterfaceClient.ManagementInterface.SetFirstTimeRun(ManagementInterfaceClient.AuthInfo, false);

                switch (qsForm.Result)
                {
                case CallButler.Manager.Forms.QuickStartResult.ProductTour:
                    ShowGettingStartedView(true);
                    break;

                case CallButler.Manager.Forms.QuickStartResult.Normal:
                    LoadViewControl(new SummaryView());
                    break;
                }
            }

            if (!firstTime)
            {
                this.Show();
            }
        }
Esempio n. 2
0
        private void ShowQuickStartWizard(bool firstTime, bool quitOnCancel)
        {
            if(!firstTime)
            {
                this.Hide();
                LoadViewControl(new SummaryView());
            }

            Forms.QuickStartForm qsForm = new CallButler.Manager.Forms.QuickStartForm(this, firstTime);

            if (qsForm.ShowDialog() != DialogResult.OK)
            {
                if(quitOnCancel)
                    Environment.Exit(1);
            }
            else
            {
                ManagementInterfaceClient.ManagementInterface.SetFirstTimeRun(ManagementInterfaceClient.AuthInfo, false);

                switch (qsForm.Result)
                {
                    case CallButler.Manager.Forms.QuickStartResult.ProductTour:
                        ShowGettingStartedView(true);
                        break;
                    case CallButler.Manager.Forms.QuickStartResult.Normal:
                        LoadViewControl(new SummaryView());
                        break;
                }
            }

            if (!firstTime)
                this.Show();
        }