Ejemplo n.º 1
0
 public static void Initialize(CodeMaidPackage package)
 {
     Instance = new CloseAllReadOnlyCommand(package);
     package.SettingsMonitor.Watch(s => s.Feature_CloseAllReadOnly, Instance.Switch);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a singleton instance of this command.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 /// <returns>A task.</returns>
 public static async Task InitializeAsync(CodeMaidPackage package)
 {
     Instance = new CloseAllReadOnlyCommand(package);
     await package.SettingsMonitor.WatchAsync(s => s.Feature_CloseAllReadOnly, Instance.SwitchAsync);
 }