public static void ShowLocations() { var wnd = new LocationWindow(); wnd.Height = SystemParameters.PrimaryScreenHeight * 0.8; wnd.Width = SystemParameters.PrimaryScreenWidth * 0.8; wnd.ShowDialog(); }
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; } }