public FrmProfile() { InitializeComponent(); controller = new KaryawanController(); controller1 = new AkunController(); RefreshForm(false); }
public FrmInputKaryawan(string title, KaryawanController controller, AkunController controllerAkun) : this() { lblHeader.Text = title; this.controller = controller; this.controllerAkun = controllerAkun; AutoKodeKaryawan(); }
public FrmInputKaryawan(string title, Karyawan obj, KaryawanController controller, AkunController controllerAkun) : this() { lblHeader.Text = title; this.controller = controller; this.controllerAkun = controllerAkun; isNewData = false; karyawan = obj; akun = new Akun(); txtKodeKaryawan.Text = karyawan.KodeKaryawan; txtNamaKaryawan.Text = karyawan.Nama; if (karyawan.Gender == "L") { rdoLaki.Checked = true; } else { rdoPerempuan.Checked = true; } txtTelepon.Text = karyawan.Telepon; if (karyawan.HakAkses == "1") { cmbHakAkses.SelectedIndex = 0; } else { cmbHakAkses.SelectedIndex = 1; } }
public FrmKaryawan() { InitializeComponent(); controller = new KaryawanController(); controllerAkun = new AkunController(); InisiasiDatagrid(); RefreshForm(); }
public FrmLogin() { InitializeComponent(); controller = new AkunController(); }