using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Eplan.EplApi.ApplicationFramework; using KPlan.Forms; using KPlan.Util; namespace KPlan.Actions { class OpenFromTCAction : Eplan.EplApi.ApplicationFramework.IEplAction { public bool Execute(ActionCallingContext ctx) { if (!TCUtil.CheckLogin()) { return true; } new OpenFromTC().ShowDialog(); return true; } public bool OnRegister(ref string Name, ref int Ordinal) { Name = "OpenFromTCAction"; Ordinal = 20; return true; } public void GetActionProperties(ref ActionProperties actionProperties) { //actionProperties.Description = "Action test with parameters."; } } }