private void LoadKolektor() { displayPanel("Kolektor"); DataTable dtKol, dt; if (formMode == enumFormMode.New) { txtKolArea.Text = _area; lkKolektor.txtNamaKolektor.Text = ""; txtTMT.Text = ""; this.Text = "Master Kolektor"; this.Title = "Master Kolektor"; } else { dt = FillComboBox.DBGetAreaKolektor(_rowID, Guid.Empty, Guid.Empty); txtKolArea.Text = _area; _areaRowID = (Guid)Tools.isNull(dt.Rows[0]["AreaRowID"], ""); _kolRowID = (Guid)Tools.isNull(dt.Rows[0]["KolektorRowID"], ""); dtKol = FillComboBox.DBGetKolektor(_kolRowID); lkKolektor.txtNamaKolektor.Text = Tools.isNull(dtKol.Rows[0]["Nama"], "").ToString(); txtTMT.DateValue = (DateTime)Tools.isNull(dt.Rows[0]["TMT"], ""); this.Text = "Master Kolektor Update"; this.Title = "Master Kolektor Update"; } }