private void LoadDataSet() { Cursor.Current = Cursors.WaitCursor; try { communicatorDataSet.EnforceConstraints = false; SymbolTableAdapter symbolAdapter = new SymbolTableAdapter(); symbolAdapter.Fill(communicatorDataSet.Symbol); ScenarioTableAdapter scenarioAdapter = new ScenarioTableAdapter(); scenarioAdapter.Fill(communicatorDataSet.Scenario); TextTableAdapter textAdapter = new TextTableAdapter(); textAdapter.Fill(communicatorDataSet.Text); communicatorDataSet.EnforceConstraints = true; communicatorDataSet.AcceptChanges(); } catch (Exception ex) { ReportError(ex.Message.ToString()); } RefreshScenarioListView(); this.EnableButtons(); Cursor.Current = Cursors.Default; }
private void LoadDataSet() { Cursor.Current = Cursors.WaitCursor; try { adaScenarioDataSet1.EnforceConstraints = false; SymbolTableAdapter symbolAdapter = new SymbolTableAdapter(); symbolAdapter.Fill(adaScenarioDataSet1.Symbol); ScenarioTableAdapter scenarioAdapter = new ScenarioTableAdapter(); scenarioAdapter.Fill(adaScenarioDataSet1.Scenario); TextTableAdapter textAdapter = new TextTableAdapter(); textAdapter.Fill(adaScenarioDataSet1.Text); adaScenarioDataSet1.EnforceConstraints = true; } catch (Exception ex) { ReportError(ex); } RefreshViews(); Cursor.Current = Cursors.Default; }