Exemplo n.º 1
0
 private void btnAddLocation_Click(object sender, EventArgs e)
 {
     using (TeleportLocationForm locationForm = new TeleportLocationForm())
     {
         if (locationForm.ShowDialog() == DialogResult.OK && !string.IsNullOrEmpty(locationForm.LocationName))
         {
             helper.AddCurrentLocation(locationForm.LocationName);
             UpdateLocationList();
         }
     }
 }
Exemplo n.º 2
0
 private void btnAddLocation_Click(object sender, EventArgs e)
 {
     using (TeleportLocationForm locationForm = new TeleportLocationForm())
     {
         if (locationForm.ShowDialog() == DialogResult.OK && !string.IsNullOrEmpty(locationForm.LocationName))
         {
             helper.AddCurrentLocation(locationForm.LocationName);
             UpdateLocationList();
         }
     }
 }