Dateien nach "PenPaperMain" hochladen
This commit is contained in:
parent
1608317714
commit
a0f3cb721f
10
PenPaperMain/AssemblyInfo.cs
Normal file
10
PenPaperMain/AssemblyInfo.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
41
PenPaperMain/MainWindow.xaml.cs
Normal file
41
PenPaperMain/MainWindow.xaml.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Pen_Paper_Main
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Event für die Buttons "Anmelden" und "Registrieren"
|
||||
private void Anmelden_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Anmeldung anmeldung = new Anmeldung();
|
||||
anmeldung.Show();
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void Registrieren_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Registrieren registrieren = new Registrieren();
|
||||
registrieren.Show();
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
66
PenPaperMain/Würfel.xaml
Normal file
66
PenPaperMain/Würfel.xaml
Normal file
@ -0,0 +1,66 @@
|
||||
<Grid Background="LightBlue">
|
||||
<Border Width="Auto"
|
||||
Padding="20"
|
||||
Height="Auto"
|
||||
Background="White"
|
||||
CornerRadius="10"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
<StackPanel Margin="10"
|
||||
Width="320">
|
||||
<TextBlock Text="🎲 Würfel"
|
||||
FontSize="22"
|
||||
FontWeight="Bold"
|
||||
Margin="0,0,0,12"
|
||||
HorizontalAlignment="Center"/>
|
||||
|
||||
<!-- eingabe von -->
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0,0,0,8">
|
||||
<TextBlock Text="Von:"
|
||||
Width="80"
|
||||
VerticalAlignment="Center"/>
|
||||
<TextBox x:Name="TxtFrom"
|
||||
Width="80"
|
||||
Text="1"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- eingabe bis -->
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0,0,0,12">
|
||||
<TextBlock Text="Bis:"
|
||||
Width="80"
|
||||
VerticalAlignment="Center"/>
|
||||
<TextBox x:Name="TxtTo"
|
||||
Width="80"
|
||||
Text="6"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- wie viel würfe -->
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Margin="0,0,0,12">
|
||||
<TextBlock Text="Anzahl:"
|
||||
Width="80"
|
||||
VerticalAlignment="Center"/>
|
||||
<TextBox x:Name="TxtCount"
|
||||
Width="80"
|
||||
Text="1"/>
|
||||
</StackPanel>
|
||||
|
||||
<Button Content="🎲 Würfeln"
|
||||
Click="BtnRoll_Click"
|
||||
Height="36"/>
|
||||
|
||||
<TextBlock Text="📜 Ergebnisse:"
|
||||
FontWeight="SemiBold"
|
||||
Margin="0,12,0,4"/>
|
||||
<ListBox x:Name="LstResults"
|
||||
Height="120"
|
||||
Margin="0,0,0,6"/>
|
||||
|
||||
<TextBlock x:Name="TxtSum"
|
||||
Text="Summe: 0"
|
||||
FontWeight="Bold"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
27
PenPaperMain/Würfel.xaml.cs
Normal file
27
PenPaperMain/Würfel.xaml.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace Pen_Paper_Main
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaktionslogik für Würfel.xaml
|
||||
/// </summary>
|
||||
public partial class Würfel : Window
|
||||
{
|
||||
public Würfel()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user