private void LoadInterface() { if (frmInterface == null) { frmInterface = new frmStateDetails(); } if (IsEdit) { frmInterface.IsEdit = true; frmInterface.StateCode = StateCode; frmInterface.StateName = StateName; } else if (IsAdd) { frmInterface.IsAdd = true; frmInterface.StateCode = StateCode; frmInterface.StateName = StateName; } }
private void UnloadInterface() { frmInterface.Close(); frmInterface = null; }