private void Button_Disconnect_Click(object sender, RoutedEventArgs e) { DBOperation.Disconnect(); Button_Disconnect.IsEnabled = false; Close(); }