Пример #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
 void advWindow_Closed(object sender, EventArgs e)
 {
     advWindow = null;
 }
Пример #3
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();
            }
        }
Пример #4
0
 void advWindow_Closed(object sender, EventArgs e)
 {
     advWindow = null;
 }