added Timer Class
This commit is contained in:
parent
4219a62dac
commit
bc738594c4
21
SCRUM-Timer/Timer.cs
Normal file
21
SCRUM-Timer/Timer.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace SCRUM_Timer;
|
||||||
|
|
||||||
|
public class Timer
|
||||||
|
{
|
||||||
|
public TimeOnly ActualTime { get; private set; }
|
||||||
|
public bool isRunning;
|
||||||
|
|
||||||
|
public Timer()
|
||||||
|
{
|
||||||
|
TimeOnly ActualTime = new TimeOnly(0,5,0);
|
||||||
|
isRunning = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StartStop()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
public partial class MainWindowViewModel : ViewModelBase
|
public partial class MainWindowViewModel : ViewModelBase
|
||||||
{
|
{
|
||||||
public object Time { get; }
|
|
||||||
}
|
}
|
||||||
@ -24,8 +24,8 @@
|
|||||||
VerticalAlignment="Center" />
|
VerticalAlignment="Center" />
|
||||||
|
|
||||||
<DockPanel HorizontalSpacing="50">
|
<DockPanel HorizontalSpacing="50">
|
||||||
<Button Content="{Binding Time}" Canvas.Left="60" Canvas.Top="180" />
|
<Button Content="Start/Stop" Click="ButtonHandlerStartStop"/>
|
||||||
<Button Content="+ 1:00" Canvas.Left="60" Canvas.Top="180" />
|
<Button Content="+ 1:00" Click="ButtonHandlerAddTime" />
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
|
using Avalonia.Interactivity;
|
||||||
|
|
||||||
namespace SCRUM_Timer.Views;
|
namespace SCRUM_Timer.Views;
|
||||||
|
|
||||||
@ -8,4 +9,14 @@ public partial class MainWindow : Window
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ButtonHandlerStartStop(object? sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ButtonHandlerAddTime(object? sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
1
SCRUM-Timer/obj/rider.project.model.nuget.info
Normal file
1
SCRUM-Timer/obj/rider.project.model.nuget.info
Normal file
@ -0,0 +1 @@
|
|||||||
|
17614046760489101
|
||||||
Loading…
x
Reference in New Issue
Block a user