Example #1
0
        private void btnReturnMenuForeignMembers_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form3Main form3Main = new Form3Main();

            form3Main.ShowDialog();
        }
        private void btnSignInLogo_Click(object sender, EventArgs e)
        {
            SqlConnection sqlConnection = new SqlConnection(@"Data Source=DESKTOP-0RUMVHB\SQLEXPRESS ; Initial Catalog = FellowsAndMembersDb ; Integrated Security=True ;");
            ///Yukarıdaki gibi yazalım eğer hata verirse FellowsAndMembersDb Properties'den copy-paste yaparız.
            string query = "Select * from tblMembers Where username = '******'and Password = '******'";

            SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(query, sqlConnection);

            DataTable dataTable = new DataTable();

            sqlDataAdapter.Fill(dataTable);

            if (dataTable.Rows.Count == 1)
            {
                if (radioBtnManager.Checked)
                {
                    Form3Main form3Main = new Form3Main();
                    this.Hide();
                    form3Main.ShowDialog();
                }
                else
                {
                    this.Hide();
                    Form3MainMembers form3MainMembers = new Form3MainMembers();
                    form3MainMembers.ShowDialog();
                }
            }
            else
            {
                MessageBox.Show("Please Check your Username and Password");
            }
        }
        private void btnReturnMenuAcademicians_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form3Main form3Main = new Form3Main();

            form3Main.ShowDialog();
        }
        private void btnReturnMenuMathematicalBooks_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form3Main form3Main = new Form3Main();

            form3Main.ShowDialog();
        }
Example #5
0
        private void btnReturnMenuCollegeStudents_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form3Main form3Main = new Form3Main();

            form3Main.ShowDialog();
        }