Esempio n. 1
0
        private void ChildClick(object sender, EventArgs e)
        {
            MainLoad mainloadcc = (MainLoad)Application.OpenForms["MainLoad"];
            Panel    panelcc    = (Panel)mainloadcc.Controls["pnl_Mainload"];

            panelcc.Controls.Clear();

            if (sender.ToString() == "CourseCreation")
            {
                CourseCreation CourseCreation = new CourseCreation();
                CourseCreation.TopLevel = false;
                CourseCreation.TopMost  = true;
                panelcc.Controls.Add(CourseCreation);
                CourseCreation.Show();
            }
            else if (sender.ToString() == "UsersCreation")
            {
                UsersCreation UsersCreation = new UsersCreation();
                UsersCreation.TopLevel = false;
                UsersCreation.TopMost  = true;
                panelcc.Controls.Add(UsersCreation);
                UsersCreation.Show();
            }
            else if (sender.ToString() == "ChangePassword")
            {
                ChangePassword ChangePassword = new ChangePassword();
                ChangePassword.TopLevel = false;
                ChangePassword.TopMost  = true;
                panelcc.Controls.Add(ChangePassword);
                ChangePassword.Show();
            }
            else if (sender.ToString() == "EnquiryForm")
            {
                EnquiryForm EnquiryForm = new EnquiryForm();
                EnquiryForm.TopLevel = false;
                EnquiryForm.TopMost  = true;
                panelcc.Controls.Add(EnquiryForm);
                EnquiryForm.Show();
            }
            else if (sender.ToString() == "UserTypes")
            {
                UserTypes UserTypes = new UserTypes();
                UserTypes.TopLevel = false;
                UserTypes.TopMost  = true;
                panelcc.Controls.Add(UserTypes);
                UserTypes.Show();
            }
            else if (sender.ToString() == "RolesCreation")
            {
                RolesCreation RolesCreation = new RolesCreation();
                RolesCreation.TopLevel = false;
                RolesCreation.TopMost  = true;
                panelcc.Controls.Add(RolesCreation);
                RolesCreation.Show();
            }
            else if (sender.ToString() == "FeeCreation")
            {
                FeeCreation FeeCreation = new FeeCreation();
                FeeCreation.TopLevel = false;
                FeeCreation.TopMost  = true;
                panelcc.Controls.Add(FeeCreation);
                FeeCreation.Show();
            }
            else if (sender.ToString() == "SendCampaign")
            {
                SendCampaign SendCampaign = new SendCampaign();
                SendCampaign.TopLevel = false;
                SendCampaign.TopMost  = true;
                panelcc.Controls.Add(SendCampaign);
                SendCampaign.Show();
            }

            else if (sender.ToString() == "MailChimpDetails")
            {
                MailChimpDetails MailChimpDetails = new MailChimpDetails();
                MailChimpDetails.TopLevel = false;
                MailChimpDetails.TopMost  = true;
                panelcc.Controls.Add(MailChimpDetails);
                MailChimpDetails.Show();
            }

            else if (sender.ToString() == "DashBoard")
            {
                DashBoard DashBoard = new DashBoard();
                DashBoard.TopLevel = false;
                DashBoard.TopMost  = true;
                panelcc.Controls.Add(DashBoard);
                DashBoard.Show();
            }

            else if (sender.ToString() == "Transactions")
            {
                Transactions Transactions = new Transactions();
                Transactions.TopLevel = false;
                Transactions.TopMost  = true;
                panelcc.Controls.Add(Transactions);
                Transactions.Show();
            }

            else if (sender.ToString() == "EmployeeCreation")
            {
                EmployeeCreation EmployeeCreation = new EmployeeCreation();
                EmployeeCreation.TopLevel = false;
                EmployeeCreation.TopMost  = true;
                panelcc.Controls.Add(EmployeeCreation);
                EmployeeCreation.Show();
            }
            else if (sender.ToString() == "ModuleAccess")
            {
                ModuleAccess ModuleAccess = new ModuleAccess();
                ModuleAccess.TopLevel = false;
                ModuleAccess.TopMost  = true;
                panelcc.Controls.Add(ModuleAccess);
                ModuleAccess.Show();
            }
        }
Esempio n. 2
0
        private void btnSrvAdmin_Click(object sender, EventArgs e)
        {
            UserTypes utw = new UserTypes(0);

            utw.Show();
        }