コード例 #1
0
        public UpdateUIStateEventArgs(EventUIType etype, object data)
        {
            switch (etype) {
                case EventUIType.QuestionText: {
                    if (data.GetType () != typeof (string))
                        throw new InvalidOperationException ("Invalid object type");

                    break;
                }
                default:
                    break;
            }

            this.etype = etype;
            this.data = data;
        }
コード例 #2
0
        public UpdateUIStateEventArgs(EventUIType etype, object data)
        {
            switch (etype)
            {
            case EventUIType.QuestionText: {
                if (data.GetType() != typeof(string))
                {
                    throw new InvalidOperationException("Invalid object type");
                }

                break;
            }

            default:
                break;
            }

            this.etype = etype;
            this.data  = data;
        }