void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window2 = ((Pogodski.GunCatalog.UI.ProducerWindow)(target)); return; case 2: this.ProducersList = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }
void App_Startup(object sender, StartupEventArgs e) { ProducerWindow window = new ProducerWindow(); window.Show(); }