Example #1
0
        private async void ClearList()
        {
            var q = await _app.ShowMessageBox("Question", "Clear List?", DialogButtons.YesNo);

            if (q)
            {
                FontsToInstall.Clear();
            }
        }
Example #2
0
 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);
     }
 }