/ src / modules / cmdpal / Microsoft.CmdPal.UI.ViewModels / Commands / NewExtensionFormBase.cs
NewExtensionFormBase.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System.Diagnostics.CodeAnalysis;
 6  using System.IO.Compression;
 7  using System.Text.Json;
 8  using System.Text.Json.Nodes;
 9  using Microsoft.CmdPal.Core.ViewModels.Messages;
10  using Microsoft.CommandPalette.Extensions;
11  using Microsoft.CommandPalette.Extensions.Toolkit;
12  using Windows.Foundation;
13  
14  namespace Microsoft.CmdPal.UI.ViewModels.BuiltinCommands;
15  
16  internal abstract partial class NewExtensionFormBase : FormContent
17  {
18      public event TypedEventHandler<NewExtensionFormBase, NewExtensionFormBase?>? FormSubmitted;
19  
20      protected void RaiseFormSubmit(NewExtensionFormBase? next) => FormSubmitted?.Invoke(this, next);
21  }