Ejemplo n.º 1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            _sindhStorage = StorageClass.ReadXML <List <Sindh> >("SindhDetail.xml");
            if (_sindhStorage == null)
            {
                _sindhStorage = new List <Sindh>();
            }

            _balochistanStorage = StorageClass.ReadXML <List <Balochistan> >("BalochistanDetail.xml");
            if (_balochistanStorage == null)
            {
                _balochistanStorage = new List <Balochistan>();
            }

            _punjabStorage = StorageClass.ReadXML <List <Punjab> >("PunjabDetail.xml");
            if (_punjabStorage == null)
            {
                _punjabStorage = new List <Punjab>();
            }

            _kpkStorage = StorageClass.ReadXML <List <Kpk> >("KpkDetail.xml");
            if (_kpkStorage == null)
            {
                _kpkStorage = new List <Kpk>();
            }

            _gilgitbaltistanStorage = StorageClass.ReadXML <List <Gilgitbaltistan> >("GilgitbaltistanDetail.xml");
            if (_gilgitbaltistanStorage == null)
            {
                _gilgitbaltistanStorage = new List <Gilgitbaltistan>();
            }
        }