Skip to content

Commit

Permalink
v1.00
Browse files Browse the repository at this point in the history
  • Loading branch information
Uahh committed May 31, 2021
1 parent 6348ee4 commit 200681a
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 14 deletions.
2 changes: 1 addition & 1 deletion App.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Application x:Class="ToastFish.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="View\MainWindow.xaml"
StartupUri="View\ToastFish.xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
d1p1:Ignorable="d"
xmlns:d1p1="http://schemas.openxmlformats.org/markup-compatibility/2006">
Expand Down
2 changes: 1 addition & 1 deletion Model/PushControl/PushWords.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public static void Recitation(Object Number)
}
else if (QUESTION_CURRENT_STATUS == 0)
{
CopyList.Remove(CurrentWord);
//CopyList.Remove(CurrentWord);
new ToastContentBuilder()
.AddText("错误 正确答案:" + AnswerDict[QUESTION_CURRENT_RIGHT_ANSWER.ToString()] + '.' + CurrentWord.headWord)
.Show();
Expand Down
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,41 @@
# ToastFish
一个利用Windows通知栏背单词的软件。

这是一个利用Windows通知栏背单词的软件。可以让你在上班、上课等恶劣环境下安全隐蔽的背单词。

## 使用

![选择书籍](https://github.com/Uahh/ToastFish/blob/main/Resources/select_book.gif)
首先选择要背的单词集,

![设置词数](https://github.com/Uahh/ToastFish/blob/main/Resources/set_word.gif)
然后设置要背多少单词,

![开始](https://github.com/Uahh/ToastFish/blob/main/Resources/word.gif)
然后点击开始按钮,

![测试](https://github.com/Uahh/ToastFish/blob/main/Resources/exam.gif)
背完单词后进行测试,通过后结束。

软件运行系统: Windows 10

请灵活使用 Win + A 键隐蔽的使用本软件!

## 下载与安装

请至网盘下载
```bash
链接:https://pan.baidu.com/s/1WJRfUnJpt4IymO0vStmi7w
提取码:2173
```
下载后解压,运行ToastFish.exe即可。

## 编译源码
请在cmd中运行
```bash
git clone https://github.com/Uahh/ToastFish
```
使用vs打开ToastFish.sln即可

## 感谢

感谢@itorr为本软件提供的支持,建议和测试!
8 changes: 4 additions & 4 deletions ToastFish.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@
<DesignTime>True</DesignTime>
<DependentUpon>IconChika.resx</DependentUpon>
</Compile>
<Compile Include="ViewModel\MainViewModel.cs" />
<Compile Include="ViewModel\ToastFishModel.cs" />
<Compile Include="ViewModel\TestViewModel.cs" />
<Compile Include="ViewModel\ViewModelLocator.cs" />
<Page Include="View\MainWindow.xaml">
<Page Include="View\ToastFish.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="View\MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<Compile Include="View\ToastFish.xaml.cs">
<DependentUpon>ToastFish.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion View/MainWindow.xaml → View/ToastFish.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:local="clr-namespace:ToastFish"
mc:Ignorable="d"
DataContext="{Binding Source={StaticResource Locator},Path=Main}"
Title="MainWindow" Height="754.5" Width="409.5">
Title="ToastFish" Height="754.5" Width="409.5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="634.5"></RowDefinition>
Expand Down
2 changes: 1 addition & 1 deletion View/MainWindow.xaml.cs → View/ToastFish.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace ToastFish
/// </summary>
public partial class MainWindow : Window
{
MainViewModel vm = new MainViewModel();
ToastFishModel vm = new ToastFishModel();
Select se = new Select();
public MainWindow()
{
Expand Down
4 changes: 2 additions & 2 deletions ViewModel/MainViewModel.cs → ViewModel/ToastFishModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

namespace ToastFish.ViewModel
{
public class MainViewModel : ViewModelBase
public class ToastFishModel : ViewModelBase
{
public MainViewModel()
public ToastFishModel()
{
Push = new RelayCommand(PushTest);
}
Expand Down
6 changes: 3 additions & 3 deletions ViewModel/ViewModelLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public class ViewModelLocator
public ViewModelLocator()
{
ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
SimpleIoc.Default.Register<MainViewModel>();
SimpleIoc.Default.Register<ToastFishModel>();
SimpleIoc.Default.Register<TestViewModel>();
}

public MainViewModel Main
public ToastFishModel Main
{
get
{
return ServiceLocator.Current.GetInstance<MainViewModel>();
return ServiceLocator.Current.GetInstance<ToastFishModel>();
}
}

Expand Down

0 comments on commit 200681a

Please sign in to comment.