예제 #1
0
        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;
        }
예제 #2
0
        public Contigent()
        {
            InitializeComponent();
            var x = ConfigurationManager.AppSettings["connectionString"];

            sqlcon      = new SqlConnection(x);
            DataContext = new MyDataContext();
        }
예제 #3
0
        public MainWindow()
        {
            var x = ConfigurationManager.AppSettings["connectionString"];

            sqlcon = new SqlConnection(x);

            InitializeComponent();

            _tabItems = new List <TabItem>();

            DataContext = new MyDataContext();
        }