public FormMain()
        {
            InitializeComponent();

            FDB = new Database();
            FItems = new Items();

            ApplicationSettings.Load(ApplicationSettings.DefaultSaveFilePath());
        }
 private void datenbankErstellenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // create database for internal data
     Database tDB = new Database();
     if (tDB.CreateDatabase())
     {
         // ask to assign
         if (MessageBox.Show(Resources.DB_AskToAssign_Text, Resources.DB_AskToAssign_Caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
         {
             // set it
             ApplicationSettings.Singleton.CurrentDBPath = ApplicationSettings.Singleton.LastDBFileCreated;
             ApplicationSettings.Singleton.Save(ApplicationSettings.DefaultSaveFilePath());
             // reload data
             ReloadData(ApplicationSettings.Singleton.CurrentDBPath);
         }
     };
 }