public UIEProgression(ItemStep from, ItemStep to, UIElement canvas) { From = from; To = to; Canvas = canvas; Point pFrom = From.IStepEnd.GetCenter(Canvas); X1 = pFrom.X; Y1 = pFrom.Y; Point pTo = To.IStep.GetCenter(Canvas); X2 = pTo.X; Y2 = pTo.Y; Stroke = Brushes.Black; StrokeThickness = 1.0; HorizontalAlignment = HorizontalAlignment.Left; VerticalAlignment = VerticalAlignment.Center; }
public ItemStep Duplicate() { ItemStep dup = new ItemStep(); // Copy interface properties and interface item properties dup.ILabel.Content = ILabel.Content?.ToString(); Canvas.SetLeft(dup, Canvas.GetLeft(this) + 10); Canvas.SetTop(dup, Canvas.GetTop(this) + 10); // Copy data structures dup.Step.Name = Step.Name; dup.Step.Description = Step.Description; dup.Step.Patient.Load_Process(Step.Patient.Save()); /* Specifically DON'T duplicate Progressions!! * Because that would cause a mess of Progressions that the user likely doesn't want! * Let the user manually add progressions. Duplicating an ItemStep is more for maintaining * Patient parameters. */ return(dup); }
public UEIStepEnd(ItemStep itemstep) { ItemStep = itemstep; }
public UIEStep(ItemStep itemstep) { ItemStep = itemstep; }