Пример #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
        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;
 }