void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainWindow = ((ManagementApp.MainWindow)(target)); return; case 2: this.GoodsBtn = ((System.Windows.Controls.Button)(target)); return; case 3: this.StaffsBtn = ((System.Windows.Controls.Button)(target)); return; case 4: this.SupsBtn = ((System.Windows.Controls.Button)(target)); return; case 5: this.CusBtn = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }