/// <summary> /// Initializes a new instance of the frm_ServerSelection class. /// </summary> public frm_ServerSelection() { InitializeComponent(); SetStyleOnStartUp(); //// NOTE : Here demo items are added for display purpose, please fill your own data here for actual scenario. RecentLocationData dm = new RecentLocationData(); dm.strImagePath = "/Icon/flag_1.png"; dm.strServerName = "USA Servers - Test Server"; dm.strTime = ""; lstRecentLocationData.Add(dm); RecentLocationData dm1 = new RecentLocationData(); dm1.strImagePath = "/Icon/flag_1.png"; dm1.strServerName = "USA Servers - Test Server"; dm1.strTime = ""; lstRecentLocationData.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); lstRecentLocation.ItemsSource = lstRecentLocationData; }
/// <summary> /// Initializes a new instance of the frm_CountryServicesList class. /// </summary> public frm_CountryServicesList() { InitializeComponent(); RecentLocationData dm = new RecentLocationData(); dm.strImagePath = "/Icon/flag_1.png"; dm.strServerName = "Test Server"; dm.strTime = "309MS"; lstCountrywiseLocations.Add(dm); RecentLocationData dm1 = new RecentLocationData(); dm1.strImagePath = "/Icon/flag_1.png"; dm1.strServerName = "Belgium"; dm1.strTime = "313MS"; lstCountrywiseLocations.Add(dm1); RecentLocationData dm2 = new RecentLocationData(); dm2.strImagePath = "/Icon/flag_1.png"; dm2.strServerName = "France"; dm2.strTime = "313MS"; lstCountrywiseLocations.Add(dm2); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); ////lst.Add(dm1); lstbxCountrywiseLocations.ItemsSource = lstCountrywiseLocations; }