private void DatabaseSettings_Click(object sender, EventArgs e) { FormDatabaseSettings dbsetts = new FormDatabaseSettings(_savepass.Root.Name, _savepass.Password); if (dbsetts.ShowDialog() != DialogResult.OK) { return; } _savepass.Root.Name = dbsetts.DatabaseName; _savepass.Password = dbsetts.Password; _isFileSaved = false; this.Text = string.Format("{0} * Password Manager", _savepass.Root.Name); }
private void FileNew_Click(object sender, EventArgs e) { //if (saveFileDialog1.ShowDialog() != DialogResult.OK) return; FormDatabaseSettings dbsett = new FormDatabaseSettings(); if (dbsett.ShowDialog() != DialogResult.OK) { return; } _savepass.New(dbsett.DatabaseName, dbsett.Password); _isFileSaved = false; this.Text = string.Format("{0} * Password Manager", _savepass.Root.Name); ControlsEnable(true); miEntryEdit.Enabled = false; miEntryDelete.Enabled = false; tsbtnEntryEdit.Enabled = false; tsbtnEntryDelete.Enabled = false; dgEntries_Refresh(); }