示例#1
0
 void SetFormulaBytes()
 {
     Formula = new FormulaBuilder();
     if ((Direction.Zones.Count > 0) && (Direction.DirectionDevices.Count > 0))
         AddFormula();
     else
         Formula.Add(FormulaOperationType.END);
     FormulaBytes = Formula.GetBytes();
 }
示例#2
0
 void SetFormulaBytes()
 {
     Formula = new FormulaBuilder();
     if (DatabaseType == DatabaseType.Gk)
     {
         InitializeStatesDirections();
         AddGkDeviceFormula();
     }
     else
     {
         Formula.Add(FormulaOperationType.END);
     }
     FormulaBytes = Formula.GetBytes();
 }
示例#3
0
 void SetFormulaBytes()
 {
     Formula = new FormulaBuilder();
     if (DatabaseType == DatabaseType.Gk)
     {
         AddGkZoneFormula();
     }
     else
     {
         Formula.Add(FormulaOperationType.END);
     }
     FormulaBytes = Formula.GetBytes();
 }