private void AddDB_Click(object sender, RoutedEventArgs e)
        {
            DatabaseDBMeta meta = new DatabaseDBMeta();

            DatabaseAdminDBMeta dialog = new DatabaseAdminDBMeta(ref meta);

            dialog.ShowDialog();

            if (dialog.DialogResult == true)
            {
                if (DatabaseHandler.AddDB(meta))
                {
                    GetDatabases(meta.Name);
                    Refresh();
                }
            }
        }
        private void EditDB_Click(object sender, RoutedEventArgs e)
        {
            if (DatabaseBox.SelectedItem != null)
            {
                string name = (string)DatabaseBox.SelectedItem;

                DatabaseDBMeta meta = new DatabaseDBMeta {
                    Name = name
                };
                if (DatabaseHandler.GetDBMeta(ref meta))
                {
                    DatabaseAdminDBMeta dialog = new DatabaseAdminDBMeta(ref meta);
                    dialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                    dialog.ShowDialog();

                    if (dialog.DialogResult == true)
                    {
                        DatabaseHandler.UpdateDBMeta(meta.Name, meta);
                        GetAnnotators();
                    }
                }
            }
        }