Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            m_tests = TestsCollection.GetTests();
            Logger.WriteMessage("Application Start");

            Wf_dg_testsList.DataContext = m_tests.Tests;
        }
Пример #2
0
        //Methods
        private void UpdateCollection()
        {
            TestsCollection.Clear();

            foreach (Test test in TestsList)
            {
                TestsCollection.Add(test);
            }
        }
Пример #3
0
 public static TestsCollection GetWarehouseData(DataTable dt)
 {
     if (instance == null)
     {
         instance = new TestsCollection();
     }
     // here add your conversion code but:
     // you must work on the same instance that you bound before that,
     // dont create a new one each time, as it will not the one that you bound to your GUI
     return(instance);
 }
Пример #4
0
 private void CollectAll()
 {
     TestsCollection.Clear();
     TestsList = m_Ibl.GetAllTests();
     UpdateCollection();
 }