PowerControl: Improve null handling

This commit is contained in:
Kamil Trzciński 2022-12-19 22:52:23 +01:00
parent a30ef2c400
commit 1ff7bed567
6 changed files with 19 additions and 14 deletions

View file

@ -8,10 +8,10 @@ namespace PowerControl.Menu
public int ApplyDelay { get; set; }
public bool CycleOptions { get; set; } = true;
public Func<object>? CurrentValue { get; set; }
public Func<object[]>? OptionsValues { get; set; }
public Func<object, object>? ApplyValue { get; set; }
public Func<object>? ResetValue { get; set; }
public Func<object?>? CurrentValue { get; set; }
public Func<object[]?>? OptionsValues { get; set; }
public Func<object, object?>? ApplyValue { get; set; }
public Func<object?>? ResetValue { get; set; }
private System.Windows.Forms.Timer delayTimer = new System.Windows.Forms.Timer();
private ToolStripMenuItem toolStripItem = new ToolStripMenuItem();