コード例 #1
0
ファイル: KnowledgeViewForm.cs プロジェクト: liwei5946/CEMS
 public KnowledgeViewForm(string id)
 {
     InitializeComponent();
     DataSet ds = null;
     Account aa = new Account();
     ds = aa.queryKnowledgeById(id);
     text_eqname.DataBindings.Add(new Binding("Text", ds.Tables[0], "eq_name"));
     text_partname.DataBindings.Add(new Binding("Text", ds.Tables[0], "part_name"));
     text_level.DataBindings.Add(new Binding("Text", ds.Tables[0], "level_name"));
     richText_fault_process.DataBindings.Add(new Binding("Text", ds.Tables[0], "fault_process"));
     richText_fault_reason.DataBindings.Add(new Binding("Text", ds.Tables[0], "fault_reason"));
     richText_countermeasure.DataBindings.Add(new Binding("Text", ds.Tables[0], "countermeasure"));
 }