Ejemplo n.º 1
0
        public void AddDialog(System.Type dialogType,DialogCoreTypes builtinDialogType)
        {
            string name = string.Empty;
            switch (builtinDialogType)
            {
                case DialogCoreTypes.Options:
                    name="options";
                    break;
                default:
                    return;

            }
            if(_dialogs[name]==null)
            {
                _dialogs.Add(name,dialogType);

            }
            else
            {
                throw new Exception("Dialog with same name cannot be added twice");
            }
        }
        public void AddDialog(System.Type dialogType, DialogCoreTypes builtinDialogType)
        {
            string name = string.Empty;

            switch (builtinDialogType)
            {
            case DialogCoreTypes.Options:
                name = "options";
                break;

            default:
                return;
            }
            if (_dialogs[name] == null)
            {
                _dialogs.Add(name, dialogType);
            }
            else
            {
                throw new Exception("Dialog with same name cannot be added twice");
            }
        }