public IPipePresenter Create(IPipe pipe , IPipeView view) { if (pipe!=null && view!=null) { if (pipe is INetworkPipe && view is INetworkPipeView) { return Create(pipe as INetworkPipe, view as INetworkPipeView); } else if (pipe is IDataPipe && view is IDataPipeView) { return Create(pipe as IDataPipe, view as IDataPipeView); } } return null; }
internal void _view_DeletePipeInstance(IPipeView sender, DeletePipeInstanceEventArgs ea) { throw new NotImplementedException("The method or operation is not implemented."); }
void ISetPipeView.SetView(IPipeView view) { DataPipeView = view as IDataPipeView; }
internal void _View_SelectionChanged(IPipeView sender, SelectionEventArgs ea) { if (sender != null) { SelectionChangedFromView(ea.IsSelected, ea.Source, ea.Origin); } }
/// <summary> /// Verifies both the <paramref name="view"/> and the <paramref name="model"/> have the /// same selected setting. /// </summary> /// <param name="view"></param> /// <param name="model"></param> internal void VerifySelectionStates(IPipeView view, IPipe model) { if (view.IsSelected != model.IsSelected) { throw new InvalidOperationException("Both the view and model must have the same selected value!"); } }
void ISetPipeView.SetView(IPipeView view) { NetworkPipeView = view as INetworkPipeView; }