Ejemplo n.º 1
0
        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            if (tbId.Text.Trim().Length < 10 || pbPassword.Password.Trim() == "")
            {
                return;
            }

            LoginData inputLoginData = new LoginData();

            inputLoginData.Phone    = tbId.Text.Trim();
            inputLoginData.Password = pbPassword.Password.Trim();

            LoginData loginData = new LoginData();

            loginData = memberManager.Select(inputLoginData);

            if (loginData.Phone.Equals(""))
            {
                MyMessageBox.createMessageBox(1, "핸드폰번호가 없습니다.", "");
                return;
            }
            if (!loginData.Password.Equals(encryptionManager.EncryptionPassword(inputLoginData)))
            {
                MyMessageBox.createMessageBox(1, "비밀번호가 틀렸습니다.", "");
                return;
            }

            memberManager.SetMemberData(loginData);

            tbId.Clear();
            pbPassword.Clear();

            TransitionPage.TransitionPages(1);
            TransitionPage.TransitionFrame(0);
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            TransitionPage.window = this;
            TransitionPage.TransitionPages(0);
        }
        private void btnSecession_Click(object sender, RoutedEventArgs e)
        {
            SQLiteManager sqliteManager = MainWindow.GetSqliteManager();

            string sql = "where Phone=\"" + tbPhone2.Text + "\"";

            sqliteManager.DBOpen();

            if (MyMessageBox.createMessageBox(2, "이름 : " + cbName.Text + " 핸드폰번호 : " + tbPhone2.Text + " 사용자를 삭제하시겠습니까?", "회원삭제확인") == 0)
            {
                sqliteManager.Delete(SQLiteData.TableMember, sql);
                sqliteManager.Drop(tbPhone2.Text);

                Thread thread = new Thread(() => MainWindow.runThread(3, MySQLData.TableMember, sql));
                thread.Start();
            }

            sqliteManager.DBClose();

            if (MemberData.GetMemberData.Phone == tbPhone2.Text)
            {
                TransitionPage.TransitionPages(0);
            }

            initCBSecession();
        }
Ejemplo n.º 4
0
 private void btnTab3_Click(object sender, RoutedEventArgs e)
 {
     btnSchedule.Background = Brushes.Lavender;
     btnSingUP.Background   = null;
     btnWage.Background     = null;
     TransitionPage.TransitionFrame(2);
 }
Ejemplo n.º 5
0
        public MainPage()
        {
            InitializeComponent();

            TransitionPage.frame = fmInformation;
            btnWage.Background   = Brushes.Lavender;
            TransitionPage.TransitionFrame(0);
        }
Ejemplo n.º 6
0
 private void btnlogout_Click(object sender, RoutedEventArgs e)
 {
     TransitionPage.TransitionPages(0);
 }