private void Double_OnClick(object sender, MouseButtonEventArgs e)
 {
     if (ltw == null)
     {
         ltw                          = new LandmarkTypeWindow(map, this);
         forChanging                  = (LandmarkType)dgrTypes.SelectedItem;
         changing                     = true;
         ltw.LTID_Field.Text          = forChanging.ID;
         ltw.LTName_Field.Text        = forChanging.Name;
         ltw.LTDescription_Field.Text = forChanging.Description;
         ltw.Image_Path               = forChanging.IconPath;
         ltw.Show();
         if (tempLT != null)
         {
             if (forChanging.Equals(tempLT))
             {
                 LTID.Text = "";
                 tempLT    = null;
             }
         }
     }
     else
     {
         ltw.Topmost = true;  // important
         ltw.Topmost = false; // important
         ltw.Focus();         // important
     }
 }
 private void NewType_OnClick(object sender, RoutedEventArgs e)
 {
     if (ltw == null)
     {
         ltw = new LandmarkTypeWindow(map, this);
         ltw.Show();
     }
     else
     {
         ltw.Topmost = true;  // important
         ltw.Topmost = false; // important
         ltw.Focus();         // important
     }
 }
Esempio n. 3
0
 public JavaScriptControlHelperType(LandmarkTypeWindow w)
 {
     _type = w;
 }