コード例 #1
0
ファイル: Window1.g.i.cs プロジェクト: IAmTheBritton/Project5
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.addWindow = ((Project5.Window1)(target));
                return;

            case 2:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.addRoad = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.addBorder = ((System.Windows.Controls.TabItem)(target));
                return;

            case 5:
                this.addRiver = ((System.Windows.Controls.TabItem)(target));
                return;

            case 6:
                this.addCity = ((System.Windows.Controls.TabItem)(target));
                return;

            case 7:
                this.addMountain = ((System.Windows.Controls.TabItem)(target));
                return;

            case 8:
                this.addLake = ((System.Windows.Controls.TabItem)(target));
                return;

            case 9:
                this.addLand = ((System.Windows.Controls.TabItem)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: Window1.g.i.cs プロジェクト: IAmTheBritton/Project5
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.addWindow = ((Project5.Window1)(target));
     return;
     case 2:
     this.tabControl = ((System.Windows.Controls.TabControl)(target));
     return;
     case 3:
     this.addRoad = ((System.Windows.Controls.TabItem)(target));
     return;
     case 4:
     this.addBorder = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     this.addRiver = ((System.Windows.Controls.TabItem)(target));
     return;
     case 6:
     this.addCity = ((System.Windows.Controls.TabItem)(target));
     return;
     case 7:
     this.addMountain = ((System.Windows.Controls.TabItem)(target));
     return;
     case 8:
     this.addLake = ((System.Windows.Controls.TabItem)(target));
     return;
     case 9:
     this.addLand = ((System.Windows.Controls.TabItem)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #3
0
 private void addClick(object sender, RoutedEventArgs e)
 {
     Window1 addWindow = new Window1();
     addWindow.Show();
 }