コード例 #1
0
ファイル: ViewRequest.cs プロジェクト: jareki/AnglersDiary
        public static void ShowLocations()
        {
            var wnd = new LocationWindow();

            wnd.Height = SystemParameters.PrimaryScreenHeight * 0.8;
            wnd.Width  = SystemParameters.PrimaryScreenWidth * 0.8;
            wnd.ShowDialog();
        }
コード例 #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;
            }
        }