private bool LoadFromGUI(Org p) { bool isDone = true; try { p.Name = txtName.Text.Trim(); divErrName.Attributes["style"] = styleHidden; } catch (Exception ex) { divErrName.InnerText = ex.Message; divErrName.Attributes["style"] = "color:red;"; isDone = false; } p.Address = txtAddress.Text; try { p.SetGeo3(txtGeo.Text.Trim()); divErrGeo.Attributes["style"] = styleHidden; } catch (Exception ex) { divErrGeo.Attributes["style"] = "color:red;"; divErrGeo.InnerText = ex.Message; isDone = false; } p.Note = txtNote.Text; return(isDone); }
private bool LoadFromGUI(Org p) { bool isDone = true; try { p.Name = txtName.Text.Trim(); divErrName.Attributes["style"] = styleHidden; } catch (Exception ex) { divErrName.InnerText = ex.Message; divErrName.Attributes["style"] = "color:red;"; isDone = false; } p.Address = txtAddress.Text; try { p.SetGeo3(txtGeo.Text.Trim()); divErrGeo.Attributes["style"] = styleHidden; } catch (Exception ex) { divErrGeo.Attributes["style"] = "color:red;"; divErrGeo.InnerText = ex.Message; isDone = false; } p.Note = txtNote.Text; return isDone; }