Hi Mike,
Your actual warehouse change of style plugin is in the standard plugins.
I got it to go on login by doing the following:
1. In the logged on event I added a form shown event handler for the MDI Parent itself
2. In that event handler I applied the style file
It must be that the main code applies its style after logged on event has happened
My only remaining question is how do you get the MDI Parent under 7.1 so I can make this work in both versions?- Code: Select all
JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.MDIParentForm.Shown += FormShown;
and
- Code: Select all
private void FormShown(object sender,EventArgs e)
{
if (System.IO.File.Exists(JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.Database.ReadSysData("Attkey Style Setting", "StyleFile", "").ToString()))
{
JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.ApplyStyling(JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.Database.ReadSysData("Attkey Style Setting", "StyleFile", "").ToString().Trim());
}
}