private void btnBuildingArchive_Click(object sender, EventArgs e) { try { var frm = new frmShowBuildings(false, true); frm.ShowDialog(this); } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }
private void btnBuildingSearch_Click(object sender, EventArgs e) { try { var frm = new frmShowBuildings(true, null, true, fSide?.Guid ?? Guid.Empty); if (frm.ShowDialog(this) != DialogResult.OK) { return; } building = BuildingBussines.Get(frm.SelectedGuid); LoadBuilding(); } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); } }