//Create File private void mnuNewFile_Click(object sender, EventArgs e) { using (SaveFileDialog dlg = new SaveFileDialog()) { dlg.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); dlg.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"; dlg.Title = "New FIle"; if (dlg.ShowDialog() == DialogResult.OK) { ExtensionMethods.storagePath = dlg.FileName; spaces = spaces.ReadFromDataStore(ExtensionMethods.storagePath); DeweyDecimal.Classification = DeweyDecimal.ReadToClassfication(); gbVirtualSotrageSpaces.Visible = true; gbEbooks.Visible = true; gbBookInfo.Visible = true; gbBookDetails.Visible = true; gbVirtualStorageSpaceInfo.Visible = true; mnuImportEbooks.Enabled = true; PopulateStorageSpaceList(); } } }
public ImportBooks() { InitializeComponent(); spaces = spaces.ReadFromDataStore(storagePath); DeweyDecimal.Classification = DeweyDecimal.ReadToClassfication(); }