// Class Constructor
        public FormLogin()
        {
            pegawaiDao = Factory.Factory.getPegawai();

            InitializeComponent();

            // Watermark Textbox NIK
            txt_nik.ForeColor   = SystemColors.GrayText;
            txt_nik.Text        = "NIK";
            this.txt_nik.Leave += new System.EventHandler(this.txt_nik_Leave);
            this.txt_nik.Enter += new System.EventHandler(this.txt_nik_Enter);

            // Watermark Textbox Password
            txt_password.ForeColor   = SystemColors.GrayText;
            txt_password.Text        = "PASSWORD";
            this.txt_password.Leave += new System.EventHandler(this.txt_password_Leave);
            this.txt_password.Enter += new System.EventHandler(this.txt_password_Enter);

            // Set The Focus on Login Pegawai Label when FormLogin loaded
            this.ActiveControl = pb_LogoLogin;
        }
 public static Interface.IntfPegawai getPegawai()
 {
     pegawaiDao = new Implement.ImpPegawai();
     return(pegawaiDao);
 }