private void load_Critiria() { cbCritiria.Items.Clear(); dtCritiria = SQLiteDatabaseCommand.flowList("tblCritiria", KRAId); int x = 0; foreach (DataRow row in dtCritiria.Rows) { cbCritiria.Items.Add(dtCritiria.Rows[x][1].ToString()); x++; } cbCritiria.DropDownWidth = DropDownWidth(cbCritiria); }
private void load_Element() { cbElement.Items.Clear(); indx = cbCritiria.SelectedIndex; dtElement = SQLiteDatabaseCommand.flowList("tblElement", dtCritiria.Rows[indx][2].ToString()); int x = 0; foreach (DataRow row in dtElement.Rows) { cbElement.Items.Add(dtElement.Rows[x][1].ToString()); x++; } cbElement.DropDownWidth = DropDownWidth(cbElement); }
private void load_FlowChart() { cbPossibleOutcome.Items.Clear(); indx = cbElement.SelectedIndex; dtFlowChart = SQLiteDatabaseCommand.flowList("tblFlowChart", dtElement.Rows[indx][2].ToString()); int x = 0; foreach (DataRow row in dtElement.Rows) { cbPossibleOutcome.Items.Add(dtFlowChart.Rows[x][1].ToString()); x++; } cbPossibleOutcome.DropDownWidth = DropDownWidth(cbPossibleOutcome); }