コード例 #1
0
 public void LoadRequirements(int functionid, int eventid, int statelid)
 {
     while ((cnt_reqs < dt_reqs.Rows.Count) && ((Int32)dt_reqs.Rows[cnt_reqs][1] == functionid) && ((Int32)dt_reqs.Rows[cnt_reqs][2] == eventid) && ((Int32)dt_reqs.Rows[cnt_reqs][3] == statelid))
     {
         Statel_Function_Requirement sfr = new Statel_Function_Requirement();
         sfr.AttributeNumber = (Int32)dt_reqs.Rows[cnt_reqs][4];
         sfr.AttributeValue  = (Int32)dt_reqs.Rows[cnt_reqs][5];
         sfr.Operator        = (Int32)dt_reqs.Rows[cnt_reqs][6];
         sfr.ChildOperator   = (Int32)dt_reqs.Rows[cnt_reqs][7];
         sfr.Target          = (Int32)dt_reqs.Rows[cnt_reqs][8];
         Requirements.Add(sfr);
         cnt_reqs++;
     }
 }
コード例 #2
0
 public void LoadRequirements(int functionid, int eventid, int statelid)
 {
     while ((cnt_reqs < dt_reqs.Rows.Count) && ((Int32)dt_reqs.Rows[cnt_reqs][1] == functionid) && ((Int32)dt_reqs.Rows[cnt_reqs][2] == eventid) && ((Int32)dt_reqs.Rows[cnt_reqs][3] == statelid))
     {
         Statel_Function_Requirement sfr = new Statel_Function_Requirement();
         sfr.AttributeNumber = (Int32)dt_reqs.Rows[cnt_reqs][4];
         sfr.AttributeValue = (Int32)dt_reqs.Rows[cnt_reqs][5];
         sfr.Operator = (Int32)dt_reqs.Rows[cnt_reqs][6];
         sfr.ChildOperator = (Int32)dt_reqs.Rows[cnt_reqs][7];
         sfr.Target = (Int32)dt_reqs.Rows[cnt_reqs][8];
         Requirements.Add(sfr);
         cnt_reqs++;
     }
 }