Exemplo n.º 1
0
 public static void ChooseRegion(Form Parent)
 {
     POL.DetectRegions();
     if (POL.MultipleRegionsAvailable)
     {
         using (ChooseRegionDialog CRD = new ChooseRegionDialog())
             CRD.ShowDialog(Parent);
     }
     else // No multiple regions installed? No choice to be made then!
     {
         POL.SelectedRegion_ = POL.AvailableRegions_;
     }
     using (RegistryKey POLKey = POL.OpenPOLUtilsConfigKey()) {
         if (POLKey != null)
         {
             POLKey.SetValue("Region", POL.SelectedRegion_.ToString());
         }
     }
 }
Exemplo n.º 2
0
 public static void ChooseRegion(Form Parent)
 {
     POL.DetectRegions();
     if (POL.MultipleRegionsAvailable)
     {
         using (ChooseRegionDialog CRD = new ChooseRegionDialog())
         {
             CRD.ShowDialog(Parent);
         }
     }
     else // No multiple regions installed? No choice to be made then!
     {
         POL.SelectedRegion_ = POL.AvailableRegions_;
     }
     using (RegistryKey POLKey = POL.OpenPOLUtilsConfigKey(true))
     {
         if (POLKey != null)
         {
             POLKey.SetValue("Region", POL.SelectedRegion_.ToString());
         }
     }
 }