From e6c971bf15ef76cff726cad1723d7bfb3c5147ca Mon Sep 17 00:00:00 2001
From: Exudonze <145332493+Exudonze@users.noreply.github.com>
Date: Mon, 17 Jun 2024 16:44:41 +0200
Subject: [PATCH] Popup_Settings_Chat_V1
Version 1 not ready yet
---
bibtalk/bib-talk/MainWindow.xaml | 11 +++++++-
bibtalk/bib-talk/MainWindow.xaml.cs | 39 +++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 1 deletion(-)
diff --git a/bibtalk/bib-talk/MainWindow.xaml b/bibtalk/bib-talk/MainWindow.xaml
index 1ca9a37..52fa2bb 100644
--- a/bibtalk/bib-talk/MainWindow.xaml
+++ b/bibtalk/bib-talk/MainWindow.xaml
@@ -113,7 +113,16 @@
Background="#FF323134"
Foreground="White"
SelectionBrush="#FF6332A0" KeyDown="messageBOX_KeyDown"/>
-
+
+
+
+
+
+
+
+
+
+
diff --git a/bibtalk/bib-talk/MainWindow.xaml.cs b/bibtalk/bib-talk/MainWindow.xaml.cs
index 798baab..54f3977 100644
--- a/bibtalk/bib-talk/MainWindow.xaml.cs
+++ b/bibtalk/bib-talk/MainWindow.xaml.cs
@@ -189,6 +189,45 @@ namespace bib_talk
public string IsOnline { get; set; }
}
+ private void ChatFenster_Click(object sender, RoutedEventArgs e)
+ {
+ if(popup.IsOpen = true)
+ {
+ popup.Focus();
+ }
+ else
+ {
+ popup.IsOpen = true;
+ }
+
+ }
+ private void Button1_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Button 1 wurde geklickt!");
+ ClosePopup();
+ }
+ private void Button2_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Button 2 wurde geklickt!");
+ ClosePopup();
+ }
+
+ private void Button3_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Button 3 wurde geklickt!");
+ ClosePopup();
+ }
+
+ private void Popup_LostFocus(object sender, RoutedEventArgs e)
+ {
+
+ ClosePopup();
+ }
+
+ private void ClosePopup()
+ {
+ popup.IsOpen = false;
+ }
}
}