示例#1
0
 private void btnEditMainFacts_Click(object sender, EventArgs e)
 {
     using (FactsFileForm form = new FactsFileForm())
     {
         form.Configure(Path.Combine(_PlantFolder, "facts.sgninc"),
                        "Bullets at top of list for all plants in folder:",
                        "Bullets at bottom of list for all plants in folder:",
                        "topfoldertip", "bottomfoldertip", false);
         DialogResult result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             MessageBox.Show("File saved.");
         }
     }
 }
示例#2
0
 private void btnEditExtraFacts_Click(object sender, EventArgs e)
 {
     using (FactsFileForm form = new FactsFileForm())
     {
         form.Configure(Path.Combine(_PlantFolder, cboExtraFactFile.Text),
                        "Bullets between folder wide bullets at top and variety specific bullets in middle:",
                        "Bullets between folder wide bullets at bottom and variety specific bullets in middle:",
                        "topextratip", "bottomextratip", _CreateNewExtraFacts);
         DialogResult result = form.ShowDialog();
         if (result == DialogResult.OK)
         {
             string fileName = cboExtraFactFile.Text;
             ShowExtraFactFiles();
             cboExtraFactFile.Text = fileName;
             MessageBox.Show("File saved.");
         }
     }
 }