private void btnAddMySQL_Click(object sender, RoutedEventArgs e)
        {
            winMySQL win = new winMySQL {
                Owner = this
            };

            win.ShowDialog();
            LoadMySQL();
        }
        private void MySQLEditColumn_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var rowData = ((Hyperlink)e.OriginalSource).DataContext as DatabaseViewModel;
                if (rowData == null)
                {
                    return;
                }

                winMySQL win = new winMySQL(rowData.Id)
                {
                    Owner = this
                };
                win.ShowDialog();
                LoadMySQL();
            }
            catch (Exception ex)
            {
                string message = Functions.GetErrorFromException(ex);
                MessageBox.Show("A problem occurred while opening edit dialog.\n" + message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }