コード例 #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();
        }