Ejemplo n.º 1
0
        internal void MoveNext(object fromForm)
        {
            if (fromForm is frm01Connect)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmWizardMaster frm = null;
                frm          = new frm02UsersGroups();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm02UsersGroups)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmWizardMaster frm = null;
                if (WorkingDefinition.IsClientObjectModel)
                {
                    frm = new frm04Collections();
                }
                else
                {
                    frm = new frm03WebApplications();
                }
                // frm03WebApplications frm = new frm03WebApplications();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm03WebApplications)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm04Collections frm = new frm04Collections();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm04Collections)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm05Sites frm = new frm05Sites();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm05Sites)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                var frm = new frm06Lists();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm06Lists)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }
                var frm = new frm07ViewsColumns();
                frm          = new frm07ViewsColumns();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm07ViewsColumns)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }
                var frm = new frm08ListItems();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm08ListItems)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmWizardMaster frm = null;
                if (WorkingDefinition.IsClientObjectModel)
                {
                    frm = new frm11Permissions();
                }
                else
                {
                    frm = new frm09ContentTypes();
                }
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm09ContentTypes)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm10Workflows frm = new frm10Workflows();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm10Workflows)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm11Permissions frm = new frm11Permissions();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm11Permissions)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm12Finalize frm = new frm12Finalize();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm12Finalize)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmDataGeneration frm = new frmDataGeneration();
                frm.RootForm = this;
                frm.Show();
            }

            this.Hide();
            if (fromForm is frm01Connect)
            {
            }
            else
            {
                Common.PreventAppClosing = true;
                ((Form)fromForm).Close();
                Common.PreventAppClosing = false;
            }
        }
Ejemplo n.º 2
0
        internal void MoveNext(object fromForm)
        {
            if (fromForm is frm01Connect)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmWizardMaster frm = null;
                frm = new frm02UsersGroups();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm02UsersGroups)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmWizardMaster frm = null;
                if (WorkingDefinition.IsClientObjectModel)
                {
                    frm = new frm04Collections();

                }
                else
                {
                    frm = new frm03WebApplications();
                }
                // frm03WebApplications frm = new frm03WebApplications();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm03WebApplications)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm04Collections frm = new frm04Collections();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm04Collections)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm05Sites frm = new frm05Sites();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm05Sites)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                var frm = new frm06Lists();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm06Lists)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }
                var frm = new frm07ViewsColumns();
                frm = new frm07ViewsColumns();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm07ViewsColumns)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }
                var frm = new frm08ListItems();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm08ListItems)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmWizardMaster frm = null;
                if (WorkingDefinition.IsClientObjectModel)
                {
                    frm = new frm11Permissions();
                }
                else
                {
                    frm = new frm09ContentTypes();
                }
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm09ContentTypes)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm10Workflows frm = new frm10Workflows();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm10Workflows)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm11Permissions frm = new frm11Permissions();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm11Permissions)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frm12Finalize frm = new frm12Finalize();
                frm.RootForm = this;
                frm.Show();
            }
            else if (fromForm is frm12Finalize)
            {
                if (!saveForm(fromForm))
                {
                    return;
                }

                frmDataGeneration frm = new frmDataGeneration();
                frm.RootForm = this;
                frm.Show();
            }

            this.Hide();
            if (fromForm is frm01Connect)
            {

            }
            else
            {
                Common.PreventAppClosing = true;
                ((Form)fromForm).Close();
                Common.PreventAppClosing = false;

            }
        }
Ejemplo n.º 3
0
        internal void MoveAt(int stepNumber, Form currentForm)
        {
            if (stepNumber == 1)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm01Connect frm = new frm01Connect(false);
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 2)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm02UsersGroups frm = new frm02UsersGroups();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 3)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm03WebApplications frm = new frm03WebApplications();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 4)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm04Collections frm = new frm04Collections();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 5)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm05Sites frm = new frm05Sites();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 6)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm06Lists frm = new frm06Lists();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 7)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm07ViewsColumns frm = new frm07ViewsColumns();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 8)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm08ListItems frm = new frm08ListItems();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 9)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm09ContentTypes frm = new frm09ContentTypes();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 10)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm10Workflows frm = new frm10Workflows();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 11)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm11Permissions frm = new frm11Permissions();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 12)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm12Finalize frm = new frm12Finalize();
                frm.RootForm = this;
                frm.Show();
            }

            if (currentForm != null)
            {
                currentForm.Hide();
            }
        }
Ejemplo n.º 4
0
        internal void MoveAt(int stepNumber, Form currentForm)
        {
            if (stepNumber == 1)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm01Connect frm = new frm01Connect(false);
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 2)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm02UsersGroups frm = new frm02UsersGroups();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 3)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm03WebApplications frm = new frm03WebApplications();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 4)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm04Collections frm = new frm04Collections();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 5)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm05Sites frm = new frm05Sites();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 6)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm06Lists frm = new frm06Lists();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 7)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm07ViewsColumns frm = new frm07ViewsColumns();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 8)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm08ListItems frm = new frm08ListItems();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 9)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm09ContentTypes frm = new frm09ContentTypes();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 10)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm10Workflows frm = new frm10Workflows();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 11)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm11Permissions frm = new frm11Permissions();
                frm.RootForm = this;
                frm.Show();
            }
            else if (stepNumber == 12)
            {
                if (currentForm != null && !saveForm(currentForm))
                {
                    return;
                }

                frm12Finalize frm = new frm12Finalize();
                frm.RootForm = this;
                frm.Show();
            }

            if (currentForm != null)
            {
                currentForm.Hide();
            }
        }