private void FillFormForUpdate() { Privledge privledge = applicationFacade.GetPrivledgeById(this.PrivledgeId); if (privledge != null) { txtPrivledgeName.Text = privledge.PrivledgeName; cbxStatus.SelectedItem = privledge.Status ? Enums.Status.Active : Enums.Status.Inactive; txtControlName.Text = privledge.ControlName; } }