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