Beispiel #1
0
 private void tidakbtn_Click(object sender, EventArgs e)
 {
     if (te == 0)
     {
         label1.Text         = "Transaksi Berhasil !";
         label3.Text         = "";
         Yesbtn.Text         = "";
         Yesbtn.Enabled      = false;
         Yesbtn.ForeColor    = Color.White;
         Yesbtn.BackColor    = Color.White;
         pictureBox1.Enabled = false;
         tidakbtn.Text       = "OK";
         tidakbtn.BackColor  = Color.Blue;
         te = 1;
     }
     else if (te == 1)
     {
         if (TransaksiLanjutForm.tesmasuk == 1)
         {
             TransaksiLanjutForm obj = (TransaksiLanjutForm)Application.OpenForms["TransaksiLanjutForm"];
             obj.Close();
             TransaksiLanjutForm.tesmasuk = 0;
             TransaksiLanjutForm.notrans  = null;
             this.Hide();
         }
         else if (TransaksiJs.tesmasuk == 1)
         {
             TransaksiJs obj = (TransaksiJs)Application.OpenForms["TransaksiJs"];
             obj.Close();
             TransaksiJs.notrans  = null;
             TransaksiJs.tesmasuk = 0;
             this.Hide();
         }
     }
 }
Beispiel #2
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     this.Close();
     if (TransaksiLanjutForm.tesmasuk == 1)
     {
         TransaksiLanjutForm obj = (TransaksiLanjutForm)Application.OpenForms["TransaksiLanjutForm"];
         obj.Close();
         TransaksiLanjutForm.tesmasuk = 0;
         TransaksiLanjutForm.notrans  = null;
         this.Hide();
     }
     else if (TransaksiJs.tesmasuk == 1)
     {
         TransaksiJs obj = (TransaksiJs)Application.OpenForms["TransaksiJs"];
         obj.Close();
         TransaksiJs.notrans  = null;
         TransaksiJs.tesmasuk = 0;
         this.Hide();
     }
 }
Beispiel #3
0
 private void Yesbtn_Click(object sender, EventArgs e)
 {
     if (TransaksiLanjutForm.tesmasuk == 1)
     {
         TransaksiLanjutForm obj = (TransaksiLanjutForm)Application.OpenForms["TransaksiLanjutForm"];
         obj.Close();
         TransaksiForm admin = new TransaksiForm();
         TransaksiLanjutForm.tesmasuk = 0;
         admin.Show();
         this.Hide();
     }
     else if (TransaksiJs.tesmasuk == 1)
     {
         TransaksiJs obj = (TransaksiJs)Application.OpenForms["TransaksiJs"];
         obj.Close();
         transaksiFormJs admin = new transaksiFormJs();
         admin.Show();
         TransaksiJs.tesmasuk = 0;
         this.Hide();
     }
 }
Beispiel #4
0
        private void clearken_Click(object sender, EventArgs e)
        {
            if (namatb.Text == "" || IDtb.Text == "" || nopoltb.Text == "")
            {
                MessageBox.Show("data konsumen belum lengkap ! ");
            }
            else if (noken == -1)
            {
                MessageBox.Show("anda belum memilih motor ");
            }
            else if (nopoltb.Text == "" || MerkCb.Text == "" || TipeCb.Text == "")
            {
                MessageBox.Show("data kendaraan belum lengkap ! ");
            }
            else if (checkken() == true)
            {
                MessageBox.Show("kendaraan tersebut sedang dalam proses pengerjaan !");
            }
            else
            {
                nama  = namatb.Text;
                idkon = int.Parse(IDtb.Text);
                // idken = int.Parse(idken.Text);
                nohp    = nohptb.Text;
                nopol   = nopoltb.Text;
                merkken = MerkCb.Text;
                tipeken = TipeCb.Text;
                motor   = merkken + " " + tipeken + " " + nopol;



                TransaksiLanjutForm admin = new TransaksiLanjutForm();
                admin.Show();
                this.Hide();
            }
        }