private void AddFlowProject_Load(object sender, EventArgs e) { technologyLib = new TechnologyLib(sqlConnection); dataSet = new DataSet(); technologyLib.GetFlowProjectData(dataSet); m_FlowProjectID = technologyLib.GetFlowProjectID(FlowProjectName); switch (m_OperateFlag) { case 1: break; case 2: for (int i = 0; i < dataSet.Tables["FlowProject"].Rows.Count; i++) { if (m_FlowProjectID == Convert.ToInt16(dataSet.Tables["FlowProject"].Rows[i]["FlowProjectID"])) { textBox1.Text = dataSet.Tables["FlowProject"].Rows[i]["FlowProjectName"].ToString(); richTextBox1.Text = dataSet.Tables["FlowProject"].Rows[i]["Description"].ToString(); break; } } break; } }
private void FlowProjectInfo_Load(object sender, EventArgs e) { technologyLib = new TechnologyLib(sqlConnection); dataSet = new DataSet(); technologyLib.GetFlowProjectData(dataSet); technologyLib.GetFlowProjectDetailsViewData(dataSet); InitialTreeView(treeView1); }