Exemple #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     if (Login.activeuser == "SUPERVISOR")
     {
         FormBayarPiutang piutang = new FormBayarPiutang();
         piutang.MdiParent     = this;
         piutang.StartPosition = FormStartPosition.Manual;
         piutang.Location      = new Point(10, 0);
         FormBayarHutang hutang = new FormBayarHutang();
         hutang.MdiParent     = this;
         hutang.StartPosition = FormStartPosition.Manual;
         hutang.Location      = new Point(piutang.Width + 10, 0);
         hutang.Height        = piutang.Height;
         hutang.Show();
         piutang.Show();
     }
     else
     {
         pembayaranHutangToolStripMenuItem.Enabled = false;
         piutangToolStripMenuItem1.Enabled         = false;
         koreksiStokToolStripMenuItem.Enabled      = false;
         koreksiHPPToolStripMenuItem.Enabled       = false;
         accountToolStripMenuItem.Enabled          = false;
         laporanToolStripMenuItem.Enabled          = false;
         produkToolStripMenuItem.Enabled           = false;
         pembelianToolStripMenuItem.Enabled        = false;
         kategoriToolStripMenuItem.Enabled         = false;
     }
 }
Exemple #2
0
        private void pembayaranHutangToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormBayarHutang f = new FormBayarHutang();

            f.Show();
        }