Example #1
0
        internal static WindowButtonGroup GroupInstance(string identifier = null)
        {
            if (_groups == null)
            {
                _groups = new Dictionary <string, WindowButtonGroup>();
            }
            if (string.IsNullOrWhiteSpace(identifier))
            {
                identifier = WindowButtonGroupDefaultIdentifier;
            }

            WindowButtonGroup group;

            if (!_groups.TryGetValue(identifier, out group))
            {
                group = new WindowButtonGroup();
                _groups.Add(identifier, group);
            }
            return(group);
        }
        internal static WindowButtonGroup GroupInstance(string identifier = null)
        {
            if (_groups == null)
            {
                _groups = new Dictionary<string, WindowButtonGroup>();
            }
            if (string.IsNullOrWhiteSpace(identifier))
            {
                identifier = WindowButtonGroupDefaultIdentifier;
            }

            WindowButtonGroup group;
            if (!_groups.TryGetValue(identifier, out group))
            {
                group = new WindowButtonGroup();
                _groups.Add(identifier, group);
            }
            return group;
        }