public override async Task ProcessPropertyInspectorAsync(SendToPluginEvent propertyInspectorEvent) { switch (propertyInspectorEvent.Payload["property_inspector"].ToString().ToLower()) { case "propertyinspectorconnected": await this.ConnectPropertiesAsync(); break; case "propertyinspectorwilldisappear": break; case "updatesettings": break; } }
public override async Task ProcessPropertyInspectorAsync(SendToPluginEvent propertyInspectorEvent) { switch (propertyInspectorEvent.Payload["property_inspector"].ToString().ToLower()) { case "propertyinspectorconnected": // Send settings to Property Inspector await m_Connection.SendToPropertyInspectorAsync(m_Action, JObject.FromObject(m_Settings), m_Context); break; case "propertyinspectorwilldisappear": await SaveAsync(); break; case "updatesettings": m_Settings = propertyInspectorEvent.Payload.ToObject <ClockActionSettings>(); await SaveAsync(); break; } }
public override async Task ProcessPropertyInspectorAsync(SendToPluginEvent propertyInspectorEvent) { switch (propertyInspectorEvent.Payload["property_inspector"].ToString().ToLower()) { case "propertyinspectorconnected": await this.ConnectPropertiesAsync(); break; case "propertyinspectorwilldisappear": await this.SaveAsync(); break; case "updatesettings": this.actionSettings.CommandId = Guid.Parse(propertyInspectorEvent.Payload["selectedCommandId"].ToString()); this.actionSettings.Arguments = propertyInspectorEvent.Payload["arguments"].ToString(); await this.SaveAsync(); await this.RefreshTitleAsync(); break; } }
public abstract Task ProcessPropertyInspectorAsync(SendToPluginEvent propertyInspectorEvent);
public override Task ProcessPropertyInspectorAsync(SendToPluginEvent propertyInspectorEvent) { return(Task.FromResult(0)); }