private void accountsToolStripMenuItem_Click(object sender, EventArgs e) { accounts ac = new accounts(); ac.MdiParent = this; ac.Show(); }
//public void cekstocks() //{ // int m = DateTime.Now.Month; // int ms = DateTime.Now.Year; // NpgsqlConnection ncon2 = new NpgsqlConnection(stringkoneksi.connection); // ncon2.Open(); // var sql = "select amount from stocks "; // NpgsqlCommand ncom2 = new NpgsqlCommand(sql, ncon2); // NpgsqlDataReader nred2 = ncom2.ExecuteReader(); // while (nred2.Read()) // { // //MessageBox.Show(sql) // if (!nred2.IsDBNull(0)) // { // accounts ac = new accounts(); // ac.MdiParent = this; // ac.Show(); // //simpanstocks(); // //simpandata(); // //simpanasset(); // } // else // { // MessageBox.Show("Anda Harus Mengisi Stocks Bulan Ini Terlebih Dahulu"); // insertstocks iss = new insertstocks(); // iss.MdiParent = this; // iss.Show(); // } // } //} private void toolStripButton1_Click(object sender, EventArgs e) { accounts ac = new accounts(); ac.MdiParent = this; ac.Show(); }