Example #1
0
        public static async Task <Tray> Create(NativeImage icon)
        {
            var proxy = new Tray();

            if (scriptProxy != null)
            {
                proxy.ScriptObjectProxy = scriptProxy;
            }

            scriptProxy = await proxy.Initialize(icon);

            return(proxy);
        }
Example #2
0
        public static async Task <Tray> Create(string path)
        {
            var proxy = new Tray();

            if (scriptProxy != null)
            {
                proxy.ScriptObjectProxy = scriptProxy;
            }

            scriptProxy = await proxy.Initialize(path);

            return(proxy);
        }