コード例 #1
0
ファイル: MainWindow.g.i.cs プロジェクト: redoubtei/Weather
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((WeatherCalendar.MainWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MainWindow_OnMouseLeftButtonDown);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((WeatherCalendar.MainWindow)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MainWindow_OnMouseLeftButtonUp);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                ((WeatherCalendar.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_OnLoaded);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                ((WeatherCalendar.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.MainWindow_OnSizeChanged);

            #line default
            #line hidden

            #line 13 "..\..\MainWindow.xaml"
                ((WeatherCalendar.MainWindow)(target)).StateChanged += new System.EventHandler(this.MainWindow_OnStateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.mainBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.aar = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
                return;

            case 4:
                this.calendar = ((WeatherCalendar.Calendar)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\RestHolidaySetting.xaml"
                ((WeatherCalendar.RestHolidaySetting)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.GetCityWindow_OnMouseLeftButtonDown);

            #line default
            #line hidden

            #line 12 "..\..\RestHolidaySetting.xaml"
                ((WeatherCalendar.RestHolidaySetting)(target)).Loaded += new System.Windows.RoutedEventHandler(this.RestHolidaySetting_OnLoaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 15 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CloseWindowCommand_CanExecute);

            #line default
            #line hidden

            #line 15 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseWindowCommand_Executed);

            #line default
            #line hidden
                return;

            case 3:
                this.yearComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 71 "..\..\RestHolidaySetting.xaml"
                this.yearComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.YearComboBox_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 4:

            #line 75 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LastButton_OnClick);

            #line default
            #line hidden
                return;

            case 5:
                this.mouthComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 82 "..\..\RestHolidaySetting.xaml"
                this.mouthComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MouthComboBox_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 6:

            #line 85 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NextButton_OnClick);

            #line default
            #line hidden
                return;

            case 7:
                this.calendar = ((WeatherCalendar.Calendar)(target));
                return;

            case 8:

            #line 113 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeCityButton_OnClick);

            #line default
            #line hidden
                return;

            case 9:

            #line 142 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateWeatherButton_OnClick);

            #line default
            #line hidden
                return;

            case 10:

            #line 172 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StopWatchButton_OnClick);

            #line default
            #line hidden
                return;

            case 11:

            #line 189 "..\..\RestHolidaySetting.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TodayButton_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }