Esempio n. 1
0
        public CariBarang(Penjualan pejnfrm)
        {
            InitializeComponent();
            koneksi cone = new koneksi();

            conn = new MySqlConnection(cone.conn());
            ds   = new DataSet();
            penj = pejnfrm;
        }
Esempio n. 2
0
        private void btn_penjualan_Click(object sender, EventArgs e)
        {
            panel_button.Height     = btn_penjualan.Height;
            panel_button.Top        = btn_penjualan.Top;
            panel_pembelian.Visible = false;
            panel_penjualan.Visible = true;
            panel_stok.Visible      = false;
            panel_admin.Visible     = false;
            panel_report.Visible    = false;
            panel_supplier.Visible  = false;
            Penjualan page_penjualan = new Penjualan(id_login);

            page_penjualan.TopLevel = false;
            panel_penjualan.Controls.Add(page_penjualan);
            page_penjualan.Show();
        }