Beispiel #1
0
        private void dataSiswaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var          form         = new LoginForm();
            DialogResult dialogResult = form.ShowDialog(this);

            if (dialogResult == DialogResult.OK)
            {
                DataSiswa childForm = new DataSiswa(this.msgController);
                childForm.Show();
            }
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            // create a new database connection:
            SQLiteConnection sqlite_conn = new SQLiteConnection("Data Source=database.sqlite;Version=3;");

            // open the connection:
            //SQLiteCommand
            sqlite_conn.Open();

            var          form         = new LoginForm();
            DialogResult dialogResult = form.ShowDialog(this); // if you need non-modal window

            if (dialogResult == DialogResult.OK)
            {
                DataSiswa childForm = new DataSiswa(this.msgController);
                childForm.Show();
            }
        }
Beispiel #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            DataSiswa childForm = new DataSiswa(this.msgController);

            childForm.Show();
        }