Ejemplo n.º 1
0
 private void Txt_CustomerKota_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         Txt_CustomerPic.Focus();
     }
 }
Ejemplo n.º 2
0
 void Hapus()
 {
     Txt_CustomerNama.Clear();
     Txt_CustomerAlamat.Clear();
     Txt_CustomerKota.Clear();
     Txt_CustomerPic.Clear();
     Txt_CustomerTlp.Clear();
     Txt_CustomerEmail.Clear();
     Txt_CustomerNama.Focus();
     Txt_CustomerInputBy.Text  = GlobalVariable.UserId;
     Txt_CustomerInputTgl.Text = DateTime.Now.ToShortDateString();
 }
Ejemplo n.º 3
0
        private void Btn_New_Click(object sender, EventArgs e)
        {
            {
                Txt_CustomerId.Clear();
                Txt_CustomerNama.Clear();
                Txt_CustomerAlamat.Clear();
                Txt_CustomerKota.Clear();
                Txt_CustomerPic.Clear();
                Txt_CustomerTlp.Clear();
                Txt_CustomerEmail.Clear();
                Txt_CustomerNama.Focus();
                Txt_CustomerInputBy.Text  = GlobalVariable.UserId;
                Txt_CustomerInputTgl.Text = DateTime.Now.ToShortDateString();

                Btn_Save.Show();
                Btn_cancel.Show();
                Btn_Update.Enabled = false;
                Btn_Delete.Enabled = false;
                Txt_Search.Enabled = false;
            }
        }