private void Form3_Load(object sender, EventArgs e)
 {
     label7.Text    = login.getID();
     label5.Text    = login.getUser();
     keterangan     = "INSERT";
     txtNomor.Text  = clnDao.nomorBaru();
     txtNama.Text   = "";
     txtPartai.Text = "";
     txtNama.Focus();
     AturText(true);
     AturButton(true);
 }
Esempio n. 2
0
        private void Form4_Load(object sender, EventArgs e)
        {
            label2.Text = login.getID();
            label4.Text = login.getUser();

            if (backgroundWorker1.IsBusy != true)
            {
                loading.Canceled += new EventHandler <EventArgs>(buttonCancel_Click);
                loading.Show();
                AturButton(false);
                loading.TopMost = true;
                backgroundWorker1.RunWorkerAsync();
            }
        }