void ReleaseDesignerOutlets()
 {
     if (CellDefaultCity != null)
     {
         CellDefaultCity.Dispose();
         CellDefaultCity = null;
     }
     if (SwitchMetric != null)
     {
         SwitchMetric.Dispose();
         SwitchMetric = null;
     }
 }
Exemple #2
0
 void ReleaseDesignerOutlets()
 {
     if (CellAddCity != null)
     {
         CellAddCity.Dispose();
         CellAddCity = null;
     }
     if (CellAlerts != null)
     {
         CellAlerts.Dispose();
         CellAlerts = null;
     }
     if (CellDefaultCity != null)
     {
         CellDefaultCity.Dispose();
         CellDefaultCity = null;
     }
     if (CellManageCities != null)
     {
         CellManageCities.Dispose();
         CellManageCities = null;
     }
     if (CellUnits != null)
     {
         CellUnits.Dispose();
         CellUnits = null;
     }
     if (SwitchAlerts != null)
     {
         SwitchAlerts.Dispose();
         SwitchAlerts = null;
     }
     if (SwitchUnits != null)
     {
         SwitchUnits.Dispose();
         SwitchUnits = null;
     }
 }