Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 internal void _view_DeletePipeInstance(IPipeView sender, DeletePipeInstanceEventArgs ea)
 {
     throw new NotImplementedException("The method or operation is not implemented.");
 }
Ejemplo n.º 3
0
 void ISetPipeView.SetView(IPipeView view)
 {
     DataPipeView = view as IDataPipeView;
 }
Ejemplo n.º 4
0
 internal void _View_SelectionChanged(IPipeView sender, SelectionEventArgs ea)
 {
     if (sender != null)
     {
         SelectionChangedFromView(ea.IsSelected, ea.Source, ea.Origin);
     }
 }
Ejemplo n.º 5
0
 /// <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!");
     }
 }
Ejemplo n.º 6
0
 void ISetPipeView.SetView(IPipeView view)
 {
     NetworkPipeView = view as INetworkPipeView;
 }