Пример #1
0
        private void btnLoginAgain_Click(object sender, RoutedEventArgs e)
        {
            mySqlConnection mm = new mySqlConnection(txtUserfromSideBar.Text, txtPassfromSideBar.Password);

            mm.Connect();
            ct = mySqlConnection.globalCon;
            if (ct.Ping())
            {
                txtPassfromSideBar.Clear();
                txtUserfromSideBar.Clear();
            }
            RefreshCounters();
        }
Пример #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string u = txtU.Text;
            string p = txtP.Password;

            mySqlConnection msC2 = new mySqlConnection(u, p);

            if (msC2.ValidateConnection())
            {
                msC2.Connect();
                dt = new DashBoard();
                /* dt.Owner = this;*/
                dt.Show();
                Close();
            }
        }