Beispiel #1
0
        private void buttonAddGeoFence_Click(object sender, RoutedEventArgs e)
        {
            if (_bAddWidgetWindowOpen)
            {
                return;
            }

            AddGeoFenceWindow addGeoFenceWindow = new AddGeoFenceWindow(this);

            if (!addGeoFenceWindow.IsReady())
            {
                return;
            }

            addGeoFenceWindow.Owner = Window.GetWindow(this);
            addGeoFenceWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            _bAddWidgetWindowOpen = true;
            addGeoFenceWindow.Show();
        }
        private void buttonAddGeoFence_Click(object sender, RoutedEventArgs e)
        {
            if (_bAddWidgetWindowOpen)
            return;

              AddGeoFenceWindow addGeoFenceWindow = new AddGeoFenceWindow(this);
              if (!addGeoFenceWindow.IsReady())
            return;

              addGeoFenceWindow.Owner = Window.GetWindow(this);
              addGeoFenceWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
              _bAddWidgetWindowOpen = true;
              addGeoFenceWindow.Show();
        }