예제 #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();
         }
     }
 }
예제 #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();
         }
     }
 }