void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TWindowN = ((Projekat.Tip.TWindow)(target)); return; case 2: #line 13 "..\..\..\Tip\TWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed); #line default #line hidden return; case 3: this.OznakaTB = ((System.Windows.Controls.TextBox)(target)); #line 35 "..\..\..\Tip\TWindow.xaml" this.OznakaTB.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.OznakaTB_TextChanged); #line default #line hidden return; case 4: this.ImeTB = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.OpisTB = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.Slika = ((System.Windows.Controls.Image)(target)); return; case 7: #line 89 "..\..\..\Tip\TWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.IkonicaB_Click); #line default #line hidden return; case 8: this.Button1 = ((System.Windows.Controls.Button)(target)); #line 91 "..\..\..\Tip\TWindow.xaml" this.Button1.Click += new System.Windows.RoutedEventHandler(this.SaveB_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void Izmeni_Click(object sender, RoutedEventArgs e) { try { if ((TModel)PregledG.SelectedItem == null) { return; } TWindow tw = new TWindow((TModel)PregledG.SelectedItem); tw.ShowDialog(); } catch (Exception) { throw; } }