Beispiel #1
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();
 }
Beispiel #2
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;
            }
        }