예제 #1
0
        private void admin_save_btn_Click(object sender, RoutedEventArgs e)
        {
            List <object> userDatas = new List <object>();
            int           valid     = 0;
            int           adminjog  = 0;
            int           auth      = 0;

            if (admin_valid_check.IsChecked == true)
            {
                valid = 1;
            }
            if (admin_adminjog_check.IsChecked == true)
            {
                adminjog = 1;
            }
            if (admin_szint_1.IsChecked == true)
            {
                auth = 1;
            }
            if (admin_szint_2.IsChecked == true)
            {
                auth = 2;
            }
            if (admin_szint_3.IsChecked == true)
            {
                auth = 3;
            }

            userDatas.Add(user_admin_inp.Text);
            userDatas.Add(realname_admin_inp.Text);
            userDatas.Add(auth);
            userDatas.Add(email_admin_inp.Text);
            userDatas.Add(valid);
            userDatas.Add(adminjog);

            db.userCahnge(userDatas);
            listLoader.userListLoader(lv_admin_userlist);
            admin_info_out.Text = db.langWordList(db.languageAsker())[73];
            pc.idozito(admin_info_out);
        }