-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBahtiFocusPlugin.cs
26 lines (24 loc) · 956 Bytes
/
BahtiFocusPlugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using CanardConfit.NINA.BahtiFocus.Properties;
using NINA.Core.Utility;
using NINA.Plugin;
using NINA.Plugin.Interfaces;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Runtime.CompilerServices;
namespace CanardConfit.NINA.BahtiFocus {
[Export(typeof(IPluginManifest))]
public class BahtiFocusPlugin : PluginBase, INotifyPropertyChanged {
[ImportingConstructor]
public BahtiFocusPlugin() {
if (Settings.Default.UpdateSettings) {
Settings.Default.Upgrade();
Settings.Default.UpdateSettings = false;
CoreUtil.SaveSettings(Settings.Default);
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged([CallerMemberName] string propertyName = null) {
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}