Exemplo n.º 1
0
        /// <summary>
        /// Fixed:
        /// </summary>
        private static Dictionary <string, ControlData> SearchRangeOptionCollection(
            Context context,
            string searchRangeDefault,
            Dictionary <string, ControlData> addressBook)
        {
            switch (searchRangeDefault)
            {
            case "DefaultAddressBook":
                return(new Dictionary <string, ControlData>
                {
                    {
                        "DefaultAddressBook",
                        new ControlData(Displays.DefaultAddressBook(context: context))
                    },
                    {
                        "SiteUser",
                        new ControlData(Displays.SiteUser(context: context))
                    },
                    {
                        "All",
                        new ControlData(Displays.All(context: context))
                    }
                });

            case "SiteUser":
                return(new Dictionary <string, ControlData>
                {
                    {
                        "SiteUser",
                        new ControlData(Displays.SiteUser(context: context))
                    },
                    {
                        "All",
                        new ControlData(Displays.All(context: context))
                    }
                });

            default:
                return(new Dictionary <string, ControlData>
                {
                    {
                        "All",
                        new ControlData(Displays.All(context: context))
                    }
                });
            }
        }
 /// <inheritdoc />
 public bool Equals(SurroundTopology other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return((AcceleratePrimaryDisplay == other.AcceleratePrimaryDisplay) &&
            (ApplyWithBezelCorrectedResolution == other.ApplyWithBezelCorrectedResolution) &&
            (BaseMosaicPanoramic == other.BaseMosaicPanoramic) && (ColorDepth == other.ColorDepth) &&
            (Columns == other.Columns) && (Displays.Length == other.Displays.Length) &&
            Displays.All(display => other.Displays.Contains(display)) &&
            (DriverReloadAllowed == other.DriverReloadAllowed) && (Frequency == other.Frequency) &&
            (ImmersiveGaming == other.ImmersiveGaming) && Resolution.Equals(other.Resolution) &&
            (Rows == other.Rows));
 }