public MainWindow(string countryname, string countryshortname, string isocode2, string isocode3, string ctryflag) { InitializeComponent(); DataContext = new MyDataContext(); Contigent cg = new Contigent(countryname, countryshortname, isocode2, isocode3, ctryflag); this.Content = cg; }
private void MnuContigents_Click(object sender, RoutedEventArgs e) { Contigent cg = new Contigent(); pageRenderService.RenderPages(cg, _tabItems, tabDynamic); }