/// <summary>
 /// Creates a new instance of <c>LinePlanEditorDocument</c>.
 /// </summary>
 public LinePlanEditorModel(LinePlan linePlan)
 {
     LinePlan = linePlan;
     view = new LinePlanEditor();
     view.DataContext = this;
 }
        private void OpenLinePlan(LinePlan lp)
        {
            if (lp == null) {
                return;
            }

            documentController.OpenDocument(new LinePlanEditorModel(lp));
            //OnOpenLinePlan(new DataEventArgs<OrderPresentationModel>(this));
        }
Example #3
0
 /// <summary>
 /// Returns true if this object is equal to <c>obj</c>.
 /// </summary>
 /// <remarks>
 /// This is an overloaded Equals implementation taking a
 /// LinePlan object to improve performance as a cast is not
 /// required.
 /// </remarks>
 /// <param name="other">
 /// LinePlan object to compare against.
 /// </param>
 public bool Equals(LinePlan other)
 {
     return this.LinePlanID == other.LinePlanID;
 }