public MainWindow() { InitializeComponent(); m_tests = TestsCollection.GetTests(); Logger.WriteMessage("Application Start"); Wf_dg_testsList.DataContext = m_tests.Tests; }
//Methods private void UpdateCollection() { TestsCollection.Clear(); foreach (Test test in TestsList) { TestsCollection.Add(test); } }
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); }
private void CollectAll() { TestsCollection.Clear(); TestsList = m_Ibl.GetAllTests(); UpdateCollection(); }