You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
974 B

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.";
}
}
}