private void New(object sender, RoutedEventArgs e)
        {
            if (CurrentSession != null)
            {
                PromptSaveMessage(sender,e);
            }
            ConnectDatabase connectDatabase = new ConnectDatabase();

            if (connectDatabase.ShowDialog() == true)
            {
                CurrentSession = connectDatabase.NewSession;
                ConnectToDatabase();
            }
        }
 private void Previous(object sender, RoutedEventArgs e)
 {
     this.Close();
     ConnectDatabase connectDatabase = new ConnectDatabase();
     connectDatabase.ShowDialog();
 }