// public ListVariables ListVariables; public ListVariables(string Name, LisPLC Device, string Area, string bit, string Val, isBit isBit, typeBit typeBit, typeVariable2 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; }
private void cbType_SelectedIndexChanged(object sender, EventArgs e) { typeVariable = (typeVariable2)Enum.Parse(typeof(typeVariable2), cbType.Text); if (typeVariable == typeVariable2.Global) { listNG.Enabled = false; listOK.Enabled = false; numScan_change_V.Enabled = false; txtNameNew.Enabled = false; cbDevice.Enabled = true; cbArea.Enabled = true; cbTypeBit.Enabled = true; txtbit.Enabled = true; txtVal.Enabled = true; txtNameVari.Enabled = true; } else if (typeVariable == typeVariable2.CycleTime) { listNG.Enabled = false; listOK.Enabled = false; numScan_change_V.Enabled = true; txtNameNew.Enabled = true; cbDevice.Enabled = false; cbArea.Enabled = false; cbTypeBit.Enabled = false; txtbit.Enabled = false; txtVal.Enabled = false; txtNameVari.Enabled = true; // txtNameVari.DataSource = G.ListVariables[].Name; } else if (typeVariable == typeVariable2.LostTime) { listNG.Enabled = false; listOK.Enabled = false; numScan_change_V.Enabled = true; txtNameNew.Enabled = true; cbDevice.Enabled = false; cbArea.Enabled = false; cbTypeBit.Enabled = false; txtbit.Enabled = false; txtVal.Enabled = false; txtNameVari.Enabled = true; // txtNameVari.DataSource = G.ListVariables[].Name; } else if (typeVariable == typeVariable2.Yield) { listNG.Enabled = true; listOK.Enabled = true; numScan_change_V.Enabled = true; txtNameNew.Enabled = true; cbDevice.Enabled = false; cbArea.Enabled = false; cbTypeBit.Enabled = false; txtbit.Enabled = false; txtVal.Enabled = false; txtNameVari.Enabled = true; } }
public ListVariables(Yield Yield, typeVariable2 typeVariable) { this.Yield = Yield; this.typeVariable = typeVariable; }
public ListVariables(LostTime LostTime, typeVariable2 typeVariable) { this.LostTime = LostTime; this.typeVariable = typeVariable; }
// public CycleTime LocalVariable; public ListVariables(CycleTime CycleTime, typeVariable2 typeVariable) { this.CycleTime = CycleTime; this.typeVariable = typeVariable; }