Inheritance: IService
 public FdoSequentialProcessCtl()
 {
     InitializeComponent();
     _taskMgr = ServiceManager.Instance.GetService<TaskManager>();
     if (_taskMgr != null)
     {
         this.Disposed += new EventHandler(OnDisposed);
         _taskMgr.BeforeTaskRemoved += OnBeforeTaskRemoved;
     }
 }
        public void Decorate(IObjectExplorer explorer)
        {
            _explorer = explorer;
            _connMgr = ServiceManager.Instance.GetService<FdoConnectionManager>();
            _connMgr.BeforeConnectionRemove += new ConnectionBeforeRemoveHandler(OnBeforeConnectionRemove);
            _connMgr.ConnectionRenamed += new ConnectionRenamedEventHandler(OnConnectionRenamed);
            _taskMgr = ServiceManager.Instance.GetService<TaskManager>();
            _taskMgr.TaskAdded += new TaskEventHandler(OnTaskAdded);
            _taskMgr.TaskRemoved += new TaskEventHandler(OnTaskRemoved);
            _taskMgr.TaskRenamed += new TaskRenameEventHandler(OnTaskRenamed);

            _explorer.RegisterImage(IMG_TASK);
            _explorer.RegisterImage(IMG_JOIN);
            _explorer.RegisterImage(IMG_SEQPROC);

            _explorer.RegisterRootNode(RootNodeName, "Tasks", IMG_TASK, PATH_TASKS);
            _explorer.RegisterContextMenu(NODE_TASK, PATH_SELECTED_TASK);
        }
Esempio n. 3
0
 public FdoJoinPresenter(IFdoJoinView view, IFdoConnectionManager connMgr, TaskManager taskMgr)
 {
     _view = view;
     _view.JoinTypes = Enum.GetValues(typeof(FdoJoinType));
     _connMgr = connMgr;
     _taskMgr = taskMgr;
 }