コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AccuWeatherSearchWindow = ((GeneralMed2._0.CitySearchWindow)(target));
                return;

            case 2:

            #line 42 "..\..\..\Windows\CitySearchWindow.xaml"
                ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Border_MouseDown);

            #line default
            #line hidden
                return;

            case 3:

            #line 68 "..\..\..\Windows\CitySearchWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.CityListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 5:
                this.CloseWindowButton = ((System.Windows.Controls.Button)(target));

            #line 129 "..\..\..\Windows\CitySearchWindow.xaml"
                this.CloseWindowButton.Click += new System.Windows.RoutedEventHandler(this.CloseWindowButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        public void OpenSearchWindow()
        {
            CitySearchWindow instance = new CitySearchWindow();

            instance.ShowDialog();
        }