コード例 #1
0
        private void backbtn_Click(object sender, RoutedEventArgs e)
        {
            management mg4 = new management();
            MainWindow win = (MainWindow)Window.GetWindow(this);

            win.body.Children.Remove(this);
            win.body.Children.Add(mg4);
        }
コード例 #2
0
        //public ProductsPage pr1 = new ProductsPage();


        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (MainRoot.AccesAccessLevel == 2)
            {
                MainWindow win = (MainWindow)Window.GetWindow(this);
                win.body.Children.Remove(this);
                management mg3 = new management();
                win.body.Children.Add(mg3);
                Back_End.Func.Persons.AP_Project.Back_End.Func.Persons.Person.ChangePersonalInfo(MainRoot.UserName, newEmailtxtbx.Text, newfullNameTxt.Text, newphonenumber.Text);
            }
            else
            {
                MainWindow win = (MainWindow)Window.GetWindow(this);
                win.body.Children.Remove(this);
                ProductsPage pr1 = new ProductsPage();
                win.body.Children.Add(pr1);
                Back_End.Func.Persons.AP_Project.Back_End.Func.Persons.Person.ChangePersonalInfo(MainRoot.UserName, newEmailtxtbx.Text, newfullNameTxt.Text, newphonenumber.Text);
            }
        }