void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((MapEditor.NewSprite)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.tbImageName = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.cbIsAnimation = ((System.Windows.Controls.CheckBox)(target)); return; case 5: this.tbFrameNum = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.tbFrameSpeed = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.btnView = ((System.Windows.Controls.Button)(target)); return; case 8: this.btnOk = ((System.Windows.Controls.Button)(target)); return; case 9: this.btnCancel = ((System.Windows.Controls.Button)(target)); return; case 10: this.canvasView = ((System.Windows.Controls.Canvas)(target)); return; } this._contentLoaded = true; }