void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainVidowWiewModel = ((MVVMImage.MainVindowViewModel)(target)); return; case 2: this.btn_OtvoriWindowUcitavanje = ((System.Windows.Controls.Grid)(target)); return; case 3: this.btn_noviVentilator = ((System.Windows.Controls.Button)(target)); return; case 4: this.Tabela_I_Unos_BTN = ((System.Windows.Controls.Button)(target)); return; case 5: this.ventilatoriDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }
public MainWindow() { viewModel = new MainVindowViewModel(); DataContext = viewModel; InitializeComponent(); }