/// <summary>
        /// Triggered when a KeePass database has been closed
        /// </summary>
        private static void OnKeePassDatabaseClosed(object sender, FileClosedEventArgs fileClosedEventArgs)
        {
            // Remove the KeePass database instance from the already available configuration
            var config = Configuration.GetPasswordDatabaseConfiguration(fileClosedEventArgs.IOConnectionInfo.Path);

            config.KeePassDatabase = null;
        }
Esempio n. 2
0
 private void State_FileClosed(object sender, FileClosedEventArgs e)
 {
     if (openSearchDialogs.ContainsKey(e.File))
     {
         openSearchDialogs[e.File].Close();
     }
 }
Esempio n. 3
0
 private void OnFileClosed(object sender, FileClosedEventArgs e)
 {
     if (!IsPluginActive())
     {
         return;
     }
     m_keeShare.Unregister(e.IOConnectionInfo);
 }
Esempio n. 4
0
 /// <summary>
 /// EventListener Method, called if User closes Database
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnFileClosed(object sender, FileClosedEventArgs e)
 {
     if (openPath.Equals(e.IOConnectionInfo.Path))
     {
         if (MessageBox.Show("Delete Database?", "Database closed", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             File.Delete(openPath);
         }
     }
 }
Esempio n. 5
0
 private void OnKPDBClose(object sender, FileClosedEventArgs e)
 {
     SignalAllManagedRPCClients(Signal.DATABASE_CLOSED);
 }
Esempio n. 6
0
 private static void OTPDAO_FileClosed(object sender, FileClosedEventArgs e)
 {
     RemoveHandler(e.IOConnectionInfo.Path, true);
 }
 private void OnFileClosed(object sender, FileClosedEventArgs e)
 {
     PasswordModifiedColumnProvider.ClearCache();
 }
Esempio n. 8
0
        private void FileClosed(object sender, FileClosedEventArgs e)
        {
            this.lines.Clear();

            PropertyChanged(nameof(HasData));
        }
 private void OnFileClosed(object sender, FileClosedEventArgs e)
 {
     throw new NotImplementedException();
 }
Esempio n. 10
0
 private void FileClosed(object sender, FileClosedEventArgs e)
 {
     PropertyChanged(nameof(Title));
 }
Esempio n. 11
0
 private void OnFileClosed(object sender, FileClosedEventArgs e)
 {
     ColoredQualityColumnProvider.ClearCache();
 }
Esempio n. 12
0
 private void OnKPDBClose(object sender, FileClosedEventArgs e)
 {
     //KeePassRPCService.ensureDBisOpenEWH.Set(); // signal that DB is now open so any waiting JSONRPC thread can go ahead
     SignalAllManagedRPCClients(KeePassRPC.DataExchangeModel.Signal.DATABASE_CLOSED);
 }