示例#1
0
 public void LoadFunctions(Int32 eventid, Int32 statelid)
 {
     while ((cnt_functions < dt_functions.Rows.Count) && ((Int32)dt_functions.Rows[cnt_functions][1] == eventid) && ((Int32)dt_functions.Rows[cnt_functions][2] == statelid))
     {
         Statel_Function sf = new Statel_Function();
         sf.FunctionNumber = (Int32)dt_functions.Rows[cnt_functions][3];
         sf.Target         = (Int32)dt_functions.Rows[cnt_functions][4];
         sf.TickCount      = (Int32)dt_functions.Rows[cnt_functions][5];
         sf.TickInterval   = (Int32)dt_functions.Rows[cnt_functions][6];
         sf.LoadRequirements((Int32)dt_functions.Rows[cnt_functions][0], eventid, statelid);
         sf.LoadArguments((Int32)dt_functions.Rows[cnt_functions][0], eventid, statelid);
         Functions.Add(sf);
         cnt_functions++;
     }
 }
 public void LoadFunctions(Int32 eventid, Int32 statelid)
 {
     while ((cnt_functions < dt_functions.Rows.Count) && ((Int32)dt_functions.Rows[cnt_functions][1] == eventid) && ((Int32)dt_functions.Rows[cnt_functions][2] == statelid))
     {
         Statel_Function sf = new Statel_Function();
         sf.FunctionNumber = (Int32)dt_functions.Rows[cnt_functions][3];
         sf.Target = (Int32)dt_functions.Rows[cnt_functions][4];
         sf.TickCount = (Int32)dt_functions.Rows[cnt_functions][5];
         sf.TickInterval = (Int32)dt_functions.Rows[cnt_functions][6];
         sf.LoadRequirements((Int32)dt_functions.Rows[cnt_functions][0], eventid, statelid);
         sf.LoadArguments((Int32)dt_functions.Rows[cnt_functions][0], eventid, statelid);
         Functions.Add(sf);
         cnt_functions++;
     }
 }