public override void Run(Canguro.Controller.CommandServices services)
{
if (Canguro.Controller.Grid.LoadEditFrm.EditLoad(this) == System.Windows.Forms.DialogResult.OK)
{
DistributedSpanLoad newLoad = new DistributedSpanLoad();
newLoad.Da = 0;
newLoad.Db = 1;
newLoad.Direction = direction;
newLoad.La = load;
newLoad.Lb = load;
newLoad.Type = type;
List<Item> selection = services.GetSelection();
foreach (Item item in selection)
{
if (item is LineElement)
((LineElement)item).Loads.Add((DistributedSpanLoad)newLoad.Clone());
}
}
}