Beispiel #1
0
        public static void ShowLocations()
        {
            var wnd = new LocationWindow();

            wnd.Height = SystemParameters.PrimaryScreenHeight * 0.8;
            wnd.Width  = SystemParameters.PrimaryScreenWidth * 0.8;
            wnd.ShowDialog();
        }
Beispiel #2
0
        private void SelectLocationBtn_Click(object sender, RoutedEventArgs e)
        {
            LocationWindow wnd = new LocationWindow(true);

            if (wnd.ShowDialog() == true)
            {
                LocationTb.Tag  = wnd.SelectLocation.Id;
                LocationTb.Text = wnd.SelectLocation.Name;
            }
        }