示例#1
0
        public MainForm()
        {
            if (!ShellExtensionHandler.CheckInstallationStatus())
            {
                ShellExtensionHandler.Install();
            }

            DownloadCompletedEventHandler += OnPrinterInformationDownloaded;
            new JsonDownloader <IList <Dictionary <string, string> > >(
                new Uri(ConstFields.PRINTER_LIST_URL), DownloadCompletedEventHandler);

            InitializeComponent();
        }
示例#2
0
 private void button_Uninstall_Click(object sender, EventArgs e)
 {
     ShellExtensionHandler.Uninstall();
     MetroMessageBox.Show(this, Resources.ApplicationUninstalledPrompt);
     this.Close();
 }