private async void ClearList() { var q = await _app.ShowMessageBox("Question", "Clear List?", DialogButtons.YesNo); if (q) { FontsToInstall.Clear(); } }
private void AddFonts() { System.Windows.Forms.OpenFileDialog ofd = new System.Windows.Forms.OpenFileDialog(); ofd.Filter = "Font Files|*.ttf;*.otf"; ofd.Multiselect = true; if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK) { FontsToInstall.AddRange(ofd.FileNames); } }