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); }
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); }