예제 #1
0
            public object?GetNthMask(int index)
            {
                Icons_FieldIndex enu = (Icons_FieldIndex)index;

                switch (enu)
                {
                case Icons_FieldIndex.LargeIconFilename:
                    return(LargeIconFilename);

                case Icons_FieldIndex.SmallIconFilename:
                    return(SmallIconFilename);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
예제 #2
0
            public void SetNthMask(int index, object obj)
            {
                Icons_FieldIndex enu = (Icons_FieldIndex)index;

                switch (enu)
                {
                case Icons_FieldIndex.LargeIconFilename:
                    this.LargeIconFilename = (Exception?)obj;
                    break;

                case Icons_FieldIndex.SmallIconFilename:
                    this.SmallIconFilename = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }