예제 #1
0
 public AddConditionDialog( Connection conn, ViewModel model)
 {
     InitializeComponent();
     m_conn = conn;
     m_model = model;
     m_cond_type = 1;
     m_data_type = 2;
 }
예제 #2
0
파일: CustomNode.cs 프로젝트: giordi91/FSM
        public void CleanUpBeforeDelete(ViewModel view_model)
        {
            Plug inp = m_in;
            Plug outp = m_out; 
            var conns = inp.GetConnections();
            foreach (var conn in inp.GetConnections())
            {
                conn.StartPlug.IsSelected = false;
                conn.EndPlug.IsSelected = false;
                view_model.Connections.Remove(conn);
            }

            conns = outp.GetConnections();
            foreach (var conn in conns)
            {
                conn.StartPlug.IsSelected = false;
                conn.EndPlug.IsSelected = false;
                view_model.Connections.Remove(conn);
            }
        }
예제 #3
0
 public AddStorageDialog( ViewModel view)
 {
     InitializeComponent();
     m_view = view;
 }