Skip to content

Commit

Permalink
Add timeout feature and use Quan.ControlLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
quanljh committed Feb 18, 2024
1 parent 29caf2e commit 7817230
Show file tree
Hide file tree
Showing 18 changed files with 457 additions and 157 deletions.
9 changes: 0 additions & 9 deletions App.xaml

This file was deleted.

17 changes: 0 additions & 17 deletions KeepTeamsAlive.csproj

This file was deleted.

2 changes: 1 addition & 1 deletion KeepTeamsAlive.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32616.157
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KeepTeamsAlive", "KeepTeamsAlive.csproj", "{7F1ECE3A-11BD-4175-B81C-8C08A0F37A89}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KeepTeamsAlive", "src\KeepTeamsAlive\KeepTeamsAlive.csproj", "{7F1ECE3A-11BD-4175-B81C-8C08A0F37A89}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
15 changes: 0 additions & 15 deletions MainWindow.xaml

This file was deleted.

114 changes: 0 additions & 114 deletions MainWindow.xaml.cs

This file was deleted.

14 changes: 14 additions & 0 deletions src/KeepTeamsAlive/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Application
x:Class="KeepTeamsAlive.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Views/MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Quan.ControlLibrary;component/Themes/Generic.xaml" />
<ResourceDictionary Source="pack://application:,,,/Quan.ControlLibrary;component/Themes/Styles/Colors/Light.Blue.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
7 changes: 6 additions & 1 deletion App.xaml.cs → src/KeepTeamsAlive/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using System.Diagnostics;
using System.Reflection;
using System.Windows;
using Reactive.Bindings;
using Reactive.Bindings.Schedulers;

namespace MessAround
namespace KeepTeamsAlive
{
/// <summary>
/// Interaction logic for App.xaml
Expand All @@ -19,7 +21,10 @@ protected override void OnStartup(StartupEventArgs e)
Current.Shutdown(EXIT_CODE_ALREADY_RUNNING);
return;
}

base.OnStartup(e);

ReactivePropertyScheduler.SetDefault(new ReactivePropertyWpfScheduler(Dispatcher));
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions src/KeepTeamsAlive/KeepTeamsAlive.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net6.0-windows;net8.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<Product>KeepTeamsAlive</Product>
<Authors>Quanljh</Authors>
<Version>0.0.0.1</Version>
<ApplicationIcon>Resources\Icons\KeepTeamsAlive.ico</ApplicationIcon>
<Copyright>© 2022 Quanljh</Copyright>
<Description>You don't need to work very hard for capitalism.</Description>
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\Icons\KeepTeamsAlive.ico" />
</ItemGroup>

<ItemGroup>
<Resource Include="Resources\Icons\KeepTeamsAlive.ico" />
</ItemGroup>

<ItemGroup>
<Folder Include="ViewModels\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.77" />
<PackageReference Include="Quan.ControlLibrary" Version="1.0.0" />
<PackageReference Include="ReactiveProperty.WPF" Version="9.3.4" />
</ItemGroup>

</Project>
26 changes: 26 additions & 0 deletions src/KeepTeamsAlive/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/KeepTeamsAlive/Properties/Settings.settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
</SettingsFile>
File renamed without changes.
Loading

0 comments on commit 7817230

Please sign in to comment.