MH: Vorbereitung Handbuchverweis im Support Popup
This commit is contained in:
@@ -1341,6 +1341,17 @@ namespace BeWo
|
||||
|
||||
private void button_Support_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var handbuchButton = new Button
|
||||
{
|
||||
Content = "&", // Buch
|
||||
FontFamily = new FontFamily("Wingdings"),
|
||||
FontSize = 16,
|
||||
Width = 25,
|
||||
Margin = new Thickness(5),
|
||||
HorizontalContentAlignment = HorizontalAlignment.Center,
|
||||
VerticalContentAlignment = VerticalAlignment.Center
|
||||
};
|
||||
|
||||
var mailButton = new Button
|
||||
{
|
||||
Content = "*",
|
||||
@@ -1369,6 +1380,14 @@ namespace BeWo
|
||||
cancelButton.Margin = new Thickness(5);
|
||||
cancelButton.Width = 100;
|
||||
cancelButton.HorizontalAlignment = HorizontalAlignment.Right;
|
||||
var handbuchLabel = new Label
|
||||
{
|
||||
Content = "Handbuch öffnen",
|
||||
FontWeight = FontWeights.Bold,
|
||||
Margin = new Thickness(5),
|
||||
HorizontalContentAlignment = HorizontalAlignment.Center,
|
||||
VerticalContentAlignment = VerticalAlignment.Center
|
||||
};
|
||||
var mailLabel = new Label
|
||||
{
|
||||
Content = "Support-Mail schreiben",
|
||||
@@ -1389,7 +1408,13 @@ namespace BeWo
|
||||
// Background = Brushes.Transparent
|
||||
//};
|
||||
//mailButtonLabel.Content = mailLabel;
|
||||
|
||||
var textBlockHandbuch = new TextBlock
|
||||
{
|
||||
Foreground = Brushes.Black,
|
||||
Margin = new Thickness(45, 5, 5, 5),
|
||||
Text = "Wenn Sie auf das Buch-Symbol klicken, öffnet sich unser Handbuch in Ihrem Browser.\n" +
|
||||
"Dort finden Sie Erklärungen zu Modulen, Menüs und auch detaillierte Schulungsvideos.\n"
|
||||
};
|
||||
var textBlockMail = new TextBlock
|
||||
{
|
||||
Foreground = Brushes.Black,
|
||||
@@ -1475,6 +1500,11 @@ namespace BeWo
|
||||
cancelButton.Click += delegate { bewoWindow.Close(); };
|
||||
|
||||
|
||||
handbuchButton.Click += delegate
|
||||
{
|
||||
bewoWindow.Close();
|
||||
OpenHandbuchWindow();
|
||||
};
|
||||
mailButton.Click += delegate
|
||||
{
|
||||
bewoWindow.Close();
|
||||
@@ -1514,10 +1544,13 @@ namespace BeWo
|
||||
//};
|
||||
|
||||
var centeredStackPanel = new StackPanel { Orientation = Orientation.Vertical, VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center };
|
||||
var handbuchStackPanel = new StackPanel { Orientation = Orientation.Horizontal };
|
||||
var mailStackPanel = new StackPanel { Orientation = Orientation.Horizontal };
|
||||
var phoneStackPanel = new StackPanel { Orientation = Orientation.Horizontal };
|
||||
var tvStackPanel = new StackPanel { Orientation = Orientation.Horizontal };
|
||||
|
||||
handbuchStackPanel.Children.Add(handbuchButton);
|
||||
handbuchStackPanel.Children.Add(handbuchLabel);
|
||||
|
||||
mailStackPanel.Children.Add(mailButton);
|
||||
mailStackPanel.Children.Add(mailLabel);
|
||||
@@ -1526,7 +1559,8 @@ namespace BeWo
|
||||
phoneStackPanel.Children.Add(phoneLabel);
|
||||
|
||||
|
||||
|
||||
centeredStackPanel.Children.Add(handbuchStackPanel);
|
||||
centeredStackPanel.Children.Add(textBlockHandbuch);
|
||||
centeredStackPanel.Children.Add(mailStackPanel);
|
||||
centeredStackPanel.Children.Add(textBlockMail);
|
||||
centeredStackPanel.Children.Add(phoneStackPanel);
|
||||
@@ -1550,6 +1584,10 @@ namespace BeWo
|
||||
bewoWindow.Show();
|
||||
}
|
||||
|
||||
private void OpenHandbuchWindow()
|
||||
{
|
||||
|
||||
}
|
||||
private void CreateSupportMailWindow()
|
||||
{
|
||||
BeWoWindow bewoWindow = BeWoWpfUtils.CreateBeWoPopupWindow(600, 800);
|
||||
|
||||
Reference in New Issue
Block a user