void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dc = ((UserWindow.UserWindowViewModel)(target)); return; case 2: this.fix = ((System.Windows.Interactivity.InvokeCommandAction)(target)); return; case 3: this.dg_res = ((System.Windows.Controls.DataGrid)(target)); return; case 4: this.dg_history = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }
public UserWindowClass() { InitializeComponent(); DataContext = new UserWindowViewModel(); }