Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
W

Win8128

@Win8128
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Super-lightweight WinForms TabControl
    W Win8128

    Pretty cool, thanks for showing it.

    Clever Code csharp winforms

  • Databound controls and best practices
    W Win8128

    My 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.

    C# question performance

  • Databound controls and best practices
    W Win8128

    What 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?

    C# question performance

  • WorkflowMarkupSerializer doesn’t keep positions in a state machine workflow
    W Win8128

    OK I have found an answer at the following link[^] Search for: .layout

    C#

  • WorkflowMarkupSerializer doesn’t keep positions in a state machine workflow
    W Win8128

    I 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?

    C#
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups