Пример #1
0
        protected override void OnResolveBegin(CompilerFrontend.FrontendCompiler context)
        {
            base.OnResolveBegin(context);

            if (!String.IsNullOrEmpty(this.Registry))
            {
                if (Guid.Empty == this.Component)
                {
                    int slash = this.Registry.IndexOf('\\');
                    this.RegistryRoot = this.Registry.Substring(0, slash);
                    this.RegistryKey  = this.Registry.Substring(slash + 1);

                    if (this.RegistryKey.EndsWith("\\"))
                    {
                        this.RegistryKey = this.RegistryKey.Substring(0, this.RegistryKey.Length - 1);
                    }
                    else
                    {
                        slash             = this.RegistryKey.LastIndexOf('\\');
                        this.RegistryName = this.RegistryKey.Substring(slash + 1);
                        this.RegistryKey  = this.RegistryKey.Substring(0, slash);
                    }
                }
                else
                {
                    // TODO: show error that registry and component are mutually exclusive.
                }
            }
            else if (Guid.Empty == this.Component)
            {
                // TODO: show error that one of registry or component are required.
            }
        }
Пример #2
0
        protected override void OnResolveBegin(CompilerFrontend.FrontendCompiler context)
        {
            base.OnResolveBegin(context);

            if (!this.External)
            {
                // TODO: display error message that properties must be external currently.
            }
        }