コード例 #1
0
        private void buttonSearchAdv_Click(object sender, RoutedEventArgs e)
        {
            if (advWindow == null)
            {
                advWindow            = new AdvancedSearch();
                advWindow.MainWindow = this;
                advWindow.Closed    += new EventHandler(advWindow_Closed);
            }

            if (!advWindow.IsVisible)
            {
                advWindow.Show();
            }
            else
            {
                advWindow.Visibility = Visibility.Visible;
                advWindow.Focus();
            }
        }
コード例 #2
0
ファイル: Window1.xaml.cs プロジェクト: Prashant-Jonny/phever
 void advWindow_Closed(object sender, EventArgs e)
 {
     advWindow = null;
 }
コード例 #3
0
ファイル: Window1.xaml.cs プロジェクト: Prashant-Jonny/phever
        private void buttonSearchAdv_Click(object sender, RoutedEventArgs e)
        {
            if (advWindow == null)
            {
                advWindow = new AdvancedSearch();
                advWindow.MainWindow = this;
                advWindow.Closed += new EventHandler(advWindow_Closed);
            }

            if (!advWindow.IsVisible)
                advWindow.Show();
            else
            {
                advWindow.Visibility = Visibility.Visible;
                advWindow.Focus();
            }
        }
コード例 #4
0
 void advWindow_Closed(object sender, EventArgs e)
 {
     advWindow = null;
 }