private void UpdateSelectedItem(string sector)
        {
            switch (sector)
            {
            case "north":
            case "south":
                this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "North / South").FirstOrDefault();
                break;

            case "east":
            case "west":
                this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "East / West").FirstOrDefault();
                break;

            case "SE angle":
            case "NW angle":
                this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "NW / SE").FirstOrDefault();
                break;

            case "SW angle":
            case "NE angle":
                this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "NE / SW").FirstOrDefault();
                break;

            default:
                this.SelectedItem = null;
                break;
            }
        }
Exemplo n.º 2
0
 private void UpdateSelectedItem(string sector)
 {
     switch (sector)
     {
         case "north":
         case "south":
             this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "North / South").FirstOrDefault();
             break;
         case "east":
         case "west":
             this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "East / West").FirstOrDefault();
             break;
         case "SE angle":
         case "NW angle":
             this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "NW / SE").FirstOrDefault();
             break;
         case "SW angle":
         case "NE angle":
             this.SelectedItem = this.Data.Where(priceInfo => priceInfo.Sector == "NE / SW").FirstOrDefault();
             break;
         default:
             this.SelectedItem = null;
             break;
     }
 }