Exemple #1
0
 //  public ListVariables ListVariables;
 public GlobalVariable(string Name, LisPLC Device, string Area, string bit, string Val, isBit isBit, typeBit typeBit, typeVariable typeVariable)
 {
     this.Device = Device;
     this.Area = Area;
     this.bit = bit;
     this.Val = Val;
     this.isBit = isBit;
     this.typeBit = typeBit;
     this.Name = Name;
     this.typeVariable = typeVariable;
 }
Exemple #2
0
 private void cbTab_SelectedIndexChanged(object sender, EventArgs e)
 {
     typeVariable = (typeVariable)Enum.Parse(typeof(typeVariable), cbTab.Text);
     if (typeVariable == typeVariable.Global || typeVariable == typeVariable.CycleTime || typeVariable == typeVariable.Yield || typeVariable == typeVariable.DEVICE || typeVariable == typeVariable.LostTime)
     {
         G.sourceSQL = G.VariableSQL;
         LoadData(cbTab.Items[cbTab.SelectedIndex].ToString());
         G.curTab = cbTab.Items[cbTab.SelectedIndex].ToString();
     }
     else
     {
         G.sourceSQL = G.defautSQL;
         LoadData(cbTab.Items[cbTab.SelectedIndex].ToString());
         G.curTab = cbTab.Items[cbTab.SelectedIndex].ToString();
     }
 }