Code posting HELP!

Aug 15, 2008 at 3:35 AM
Edited Aug 15, 2008 at 3:41 AM
This is a test to see if I can post code, I am having all sorts of problems getting it to display right in posts.

public

void OpenServiceOrder(Guid ServiceOrderID)

 

{

 

 

GUIHelper.MousePointer.SetPointer();

 

 

 

//Create new Service Order Edi Controller/WorkItem and run it from here

 

 

 

ControlledWorkItem<ServiceOrderEditController> workItem = WorkItem.WorkItems.AddNew<ControlledWorkItem<ServiceOrderEditController>>();

 

workItem.Controller.Run();

workItem.Controller.OpenServiceOrderView(WASP.Library.ServiceOrders.

 

ServiceOrder.GetServiceOrder(ServiceOrderID));

 

 

 

GUIHelper.MousePointer.RestorePointer();

 

}


VS to Word and then slight cleanup in editor:

public void OpenServiceOrder(Guid ServiceOrderID)

{

    GUIHelper.MousePointer.SetPointer();

    //Create  new Service Order Edi Controller/WorkItem and run it from here

    ControlledWorkItem<ServiceOrderEditController> workItem = WorkItem.WorkItems.AddNew<ControlledWorkItem<ServiceOrderEditController>>();

    workItem.Controller.Run();

    workItem.Controller.OpenServiceOrderView(WASP.Library.ServiceOrders.ServiceOrder.GetServiceOrder(ServiceOrderID));

    GUIHelper.MousePointer.RestorePointer();

}

Aug 15, 2008 at 3:36 AM
Argh! All those spaces. The previous post was a straight copy/paste from Visual studio. What do you guys do to post code in discussions?