Pretty cool, thanks for showing it.
Win8128
Posts
-
Super-lightweight WinForms TabControl -
Databound controls and best practicesMy apologies, my memories of the arguments are poor. This was back in the day when I was using Borland Builder. I seem to recall that many of the people on their news groups thought that the use of databound was evil. I even worked for a man who used Delphi who refused to allow his staff to use databound controls. I have always used them, because IMO, it is part of the point of using a RAD tool - and I am using them heavily now. But I was curious what the industry's view is.
-
Databound controls and best practicesWhat is the current feeling about the use of databound controls? When I first started using a RAD framework I remember many people on the message boards that I belonged to were very much against the use of databound controls. IMO they greatly speed up development - but are they considered a good practice in the industry?
-
WorkflowMarkupSerializer doesn’t keep positions in a state machine workflow -
WorkflowMarkupSerializer doesn’t keep positions in a state machine workflowI am using WorkflowMarkupSerializer to save a statemachine workflow - it saves the states OK, but does not keep their positions. The code to write the workflow is here:
using (XmlWriter xmlWriter = XmlWriter.Create(fileName))
{
WorkflowMarkupSerializer markupSerializer
= new WorkflowMarkupSerializer();
markupSerializer.Serialize(xmlWriter, workflow);
}The code to read the workflow is:
DesignerSerializationManager dsm = new DesignerSerializationManager(); using (dsm.CreateSession()) { using (XmlReader xmlReader = XmlReader.Create(fileName)) { //deserialize the workflow from the XmlReader WorkflowMarkupSerializer markupSerializer = new WorkflowMarkupSerializer(); workflow = markupSerializer.Deserialize( dsm, xmlReader) as Activity; if (dsm.Errors.Count > 0) { WorkflowMarkupSerializationException error = dsm.Errors\[0\] as WorkflowMarkupSerializationException; throw error; } } }
Does anyone know how to save the positions of the states?