public CreateProfileWindow(Profile profile)
 {
     DataContext = profile;
     Title = "Edit Profile";
     bCreate.Content = "Edit";
     InitializeComponent();
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.CreatedProfile = ((Jabberwock.Profile)(target));
     return;
     case 2:
     this.tbUsername = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.tbIconPath = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.bCreate = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\CreateProfileWindow.xaml"
     this.bCreate.Click += new System.Windows.RoutedEventHandler(this.bCreate_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }