Пример #1
0
        public override void RemoveConnection(ConnectionWPF connection)
        {
            if (connection is ProcConnectionWPF)
            {
                ProcConnectionWPF procConnection = connection as ProcConnectionWPF;

                inputs.Remove(procConnection);
                outputs.Remove(procConnection);
            }
            else if (connection is ResConnectionWPF)
            {
                ResConnectionWPF resConnection = connection as ResConnectionWPF;

                resputs.Remove(resConnection);
            }
        }
Пример #2
0
 /// <summary>
 /// Добавить соединение на выход
 /////// </summary>
 /// <param name="connectoin"></param>
 public void AddOutPutConnection(ProcConnectionWPF connectoin)
 {
     outputs.Add(connectoin);
 }
Пример #3
0
 /// <summary>
 /// Добавить соединение на вход
 /// </summary>
 /// <param name="connectoin"></param>
 public void AddInPutConnection(ProcConnectionWPF connectoin)
 {
     inputs.Add(connectoin);
 }