コード例 #1
0
ファイル: ImportsForm.cs プロジェクト: CGHill/Hard-To-Find
        /*Precondition:
          Postcondition: Initializes and checks to see if files can be imported */
        private void setup()
        {
            fileManager = new FileManager();
            dbManager = new DatabaseManager();

            if (!fileManager.checkForImportStorageLocation())
            {
                importFileLocation = fileManager.getStorageFilePath();

                canImport = false;

                MessageBox.Show("Please Set import location before trying to import");
            }
            else
            {
                canImport = true;
            }
        }