All,
I am currently working on a completely new version of the e-Sword Installer menu. This version, which is still in its developmental stage, will be a complete revamp of the previous version. A lot of things are going to change.
Screenshot of ESM Running in Debug Mode in Visual Studio
ESM Running in Debug Mode.jpg 119.14K 22 downloads
The kind of changes that are being made are as follows:
- Dropdown context Menu replaced with Dropdown ComboBoxes for resource installation
- Toolbar replaced by dedicated buttons for each ComboBox.
- Resource installation files able to load up into dedicated ComboBoxes.
- When a particular ComboBox is accessed all other resource buttons are disabled
- When a particular ComboBox is hidden, all other resource buttons are enabled
- No longer able to browse a particular resource folder due to all files are now able to upload in their respective ComboBox makes this option unwarranted. However the Explore CD/DVD button still remains for browsing and exploring the contents of the CD/DVD.
I think these changes will be helpful to those who use this program to distribute their own compilation of e-Sword CDs and/or DVDs because it means that when it comes to the official e-Sword resources, one doesn't have to be dependent on having to have the correct file name. Also it means that if one prefers to have a 10 mile long filename, is able to do so.
When it comes to installing the resources, ESIM still will only be able to run an installer program and/or self-extracting zip files. This means you will still need to have an exe extension type file.
Another thing you will still have to do, is have all your resources in dedicated folders, which are:
- Bibles
- Commentaries
- Devotionals
- Dictionaries
- e-Sword_Pres (This one you only need if you are including the e-Sword PowerPoint presentation in your compilation)
- Maps
- STEP Library
- Topic Files
So that you know and can see the importance of having these particular folders in your compilation, below is the code for loading up the files you may add to you CD?DVD. You will notice that horrible Error message in "Catch" part of the "Try" if you don't have the required folders and the files in them.
try
{
//String-Array variables for ComboBoxes to fill up with files from their respective folders
string[] bblFiles = System.IO.Directory.GetFiles(@"Bibles");
string[] cmtFiles = System.IO.Directory.GetFiles(@"Commentaries");
string[] devFiles = System.IO.Directory.GetFiles(@"Devotionals");
string[] dctFiles = System.IO.Directory.GetFiles(@"Dictionaries");
string[] grfFiles = System.IO.Directory.GetFiles(@"Maps");
string[] stpFiles = System.IO.Directory.GetFiles(@"Step Libraries");
string[] tpxFiles = System.IO.Directory.GetFiles(@"Topic Files");
//For each ComboBox to fill, in declaring a String variable as "files," jist doesn't work, and therefore
//the variable name requires a unique name, e.g., cmtFiles and etc.
//Load up the comboboxes with files
this.cmbBibles.Items.AddRange(bblFiles); //Load up Bible add-ons
this.cmbCommentaries.Items.AddRange(cmtFiles); //Load Up Commentary add-ons
this.cmbDevotional.Items.AddRange(devFiles); //Load up Devotional add-ons
this.cmbDictionaries.Items.AddRange(dctFiles); //Load up Dictionary add-ons
this.cmbGraphics.Items.AddRange(grfFiles); //Load up Graphic add-ons
this.cmbStep.Items.AddRange(stpFiles); //Load up STEP Library add-ons
this.cmbReference.Items.AddRange(tpxFiles); //Load up Topic and Reference Library add-ons
}
catch
{
MessageBox.Show("Unable to find all or some files and folder\nto load.\n\nThe person who provided you the CD/DVD may\nnot "+
"have included some or all resource files, or\nmay not have placed them in the required folders.\n\nClick on the Explore "+
"CD/DVD button and check\nif the files are on the media.\n\nClick OK to continue",this.Text, MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
Now, on the catch part I could have been really mean by making this statement:
catch (Exception)
{
throw;
}
That would put out an Error message making the end user think that there is something really critically wrong with the program or his/her computer. Call it a real "freak out" situation.
I am still thinking of having another folder for odds and ends, such as Harmony, Study Note and etc called "Others," or "Miscellaneous," or something like that. If you wish to have that kind of folder as part of your compilation, then I will program that in.
Let me know your thoughts, and if you wish to have your input to the development, I will only be too pleased to take them into consideration.
Blessings,
Edited by APsit190, 07 October 2014 - 08:54 PM.