The following isn't working but there must be something else to it.
Version 7.2.1 SR4
- Code: Select all
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
if (JiwaForm is JiwaFinancials.Jiwa.JiwaLandedCostUI.Shipment.Shipment)
{
JiwaFinancials.Jiwa.JiwaLandedCostUI.Shipment.Shipment shipmentForm = (JiwaFinancials.Jiwa.JiwaLandedCostUI.Shipment.Shipment)JiwaForm;
shipmentForm.Shipment.ReadEnd += ReadShipmentEnd;
}
}
private void ReadShipmentEnd(object sender, System.EventArgs e)
{
JiwaFinancials.Jiwa.JiwaLandedCost.Shipment.Shipment shipment = (JiwaFinancials.Jiwa.JiwaLandedCost.Shipment.Shipment)sender;
JiwaFinancials.Jiwa.JiwaLandedCostUI.Shipment.Shipment shipmentForm = (JiwaFinancials.Jiwa.JiwaLandedCostUI.Shipment.Shipment)shipment.Client;
if (shipment.Status == JiwaFinancials.Jiwa.JiwaLandedCost.Shipment.Shipment.StatusType.Closed)
{
shipmentForm.TableLayoutPanel1.Enabled = true;
shipmentForm.NotesUltraTextEditor.Enabled = true;
}
}


