public MainForm() { if (!ShellExtensionHandler.CheckInstallationStatus()) { ShellExtensionHandler.Install(); } DownloadCompletedEventHandler += OnPrinterInformationDownloaded; new JsonDownloader <IList <Dictionary <string, string> > >( new Uri(ConstFields.PRINTER_LIST_URL), DownloadCompletedEventHandler); InitializeComponent(); }
private void button_Uninstall_Click(object sender, EventArgs e) { ShellExtensionHandler.Uninstall(); MetroMessageBox.Show(this, Resources.ApplicationUninstalledPrompt); this.Close(); }