private void FillForm(int accountEntryID) { var loadAccountEntryByID = new AccountTrackerEntrySVC().LoadAccountEntryByID(accountEntryID); //Check if object is valid if (loadAccountEntryByID.AccountEntryID > 0) { uxMainFormPnl.Visible = true; uxAccountNumTxt.Text = loadAccountEntryByID.AccountEntryID.ToString(); uxPhysicalLocationTxt.Text = loadAccountEntryByID.PhysicalLocationDesc; uxPasswordChangeFrequencyDescTxt.Text = loadAccountEntryByID.PasswordChangeFrequency; uxDataBeingTransferredDescTxt.Text = loadAccountEntryByID.DataBeingTransferredDesc; // DDL's: Data Choice, Type of Connection uxDataChoiceDdl.DataValueField = DataConverter.ObjectToString(loadAccountEntryByID.DataChoiceNum); uxTypeOfconnectionDescTxt.DataValueField = DataConverter.ObjectToString(loadAccountEntryByID.ConnectionTypeDesc); // Check boxes: Password Protected bool selected = false; if (PasswordProtectedCB.Checked == false) { selected = false; } else { selected = true; PasswordProtectedCB = DataConverter.ObjectToBool(loadAccountEntryByID.PasswordProtected);//Error in title returned here. }
CheckBox.Checked
PasswordProtectedCB.Checked = DataConverter.ObjectToBool(loadAccountEntryByID.PasswordProtected)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)