- Code: Select all
JiwaFinancials.Jiwa.JiwaDebtors.Import.DebtorImport DebtorImportObject = (JiwaFinancials.Jiwa.JiwaDebtors.Import.DebtorImport)JiwaBusinessLogic;
System.Windows.Forms.MessageBox.Show(DebtorImportObject.DestinationProperties.Count.ToString());
However when I then look at the list after I read in the csv it wasn't there so I added the following to the form plugin and both message boxes give an answer of 104, so something is clear different between the two forms where something is changing the object, but I have no idea what, I am attaching to the read end just as with the inventory to cover off if the property needs adding again, any idea what could be causing the difference?
- Code: Select all
public class FormPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaFormPlugin
{
public static JiwaFinancials.Jiwa.JiwaDebtorsUI.Import.MainForm dform;
public override object InitializeLifetimeService()
{
// returning null here will prevent the lease manager
// from deleting the Object.
return null;
}
public void SetupBeforeHandlers(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
dform = ( JiwaFinancials.Jiwa.JiwaDebtorsUI.Import.MainForm )JiwaForm;
dform.BrowseUltraButton.Click += BeforeButtonClick;
}
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
dform.BrowseUltraButton.Click += AfterButtonClick;
}
public void BeforeButtonClick(object sender, EventArgs e)
{
System.Windows.Forms.MessageBox.Show(dform.DebtorImportObject.DestinationProperties.Count.ToString());
}
public void AfterButtonClick(object sender, EventArgs e)
{
System.Windows.Forms.MessageBox.Show(dform.DebtorImportObject.DestinationProperties.Count.ToString());
}
}



