Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AutoClicker/AutoClicker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
<Compile Include="Models\AutoClickerSettings.cs" />
<Compile Include="Models\HotkeySettings.cs" />
<Compile Include="Models\SystemTrayMenuActionEventArgs.cs" />
<Compile Include="Properties\Annotations.cs" />
<Compile Include="Utils\JsonUtils.cs" />
<Compile Include="Utils\KeyMappingUtils.cs" />
<Compile Include="Models\ApplicationSettings.cs" />
Expand Down
2 changes: 2 additions & 0 deletions AutoClicker/AutoClicker.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeInspection/CodeAnnotations/NamespacesWithAnnotations/=AutoClicker_002EAnnotations/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
45 changes: 43 additions & 2 deletions AutoClicker/Models/AutoClickerSettings.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
using AutoClicker.Enums;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using AutoClicker.Annotations;
using AutoClicker.Enums;

namespace AutoClicker.Models
{
public class AutoClickerSettings
public class AutoClickerSettings : INotifyPropertyChanged
{
public int Hours { get; set; }

Expand All @@ -12,6 +15,22 @@ public class AutoClickerSettings

public int Milliseconds { get; set; }

public int MaximumHours { get; set; }

public int MaximumMinutes { get; set; }

public int MaximumSeconds { get; set; }

public int MaximumMilliseconds { get; set; }

public int MinimumHours { get; set; }

public int MinimumMinutes { get; set; }

public int MinimumSeconds { get; set; }

public int MinimumMilliseconds { get; set; }

public MouseButton SelectedMouseButton { get; set; }

public MouseAction SelectedMouseAction { get; set; }
Expand All @@ -25,5 +44,27 @@ public class AutoClickerSettings
public int PickedYValue { get; set; }

public int SelectedTimesToRepeat { get; set; }

private bool _isRandomizedIntervalEnabled = false;
public bool IsRandomizedIntervalEnabled
{
get => _isRandomizedIntervalEnabled;
set
{
_isRandomizedIntervalEnabled = value;
OnPropertyChanged(nameof(IsRandomizedIntervalEnabled));
}
}



// The functions below are required to explicitly call the UpdateSourceTrigger for IsRandomizedIntervalEnabled
public event PropertyChangedEventHandler PropertyChanged;

[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Loading