Exemple #1
0
        public async Task <bool> InstallAsync()
        {
            try
            {
                await InstallerWindow.InstallAssembly(this.AssemblyEntry, true);

                // await Application.Current.Dispatcher.InvokeAsync(() => InstallerWindow.InstallAssembly(this.AssemblyEntry, true));
                return(true);
            }
            catch
            {
                return(false);
            }
        }
Exemple #2
0
        public static async Task HandleUrl(string url, MetroWindow window)
        {
            url = url.Remove(0, FullName.Length).WebDecode();

            var r = Regex.Matches(url, "(project|projectGroup)/([^/]*)/([^/]*)/([^/]*)/?");

            foreach (Match m in r)
            {
                var linkType = m.Groups[1].ToString();

                switch (linkType)
                {
                case "project":
                    InstallerWindow.InstallAssembly(m);
                    break;
                }
            }
        }