예제 #1
0
 //  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;
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
 public ListVariables(Yield Yield, typeVariable2 typeVariable)
 {
     this.Yield        = Yield;
     this.typeVariable = typeVariable;
 }
예제 #4
0
 public ListVariables(LostTime LostTime, typeVariable2 typeVariable)
 {
     this.LostTime     = LostTime;
     this.typeVariable = typeVariable;
 }
예제 #5
0
        // public CycleTime LocalVariable;

        public ListVariables(CycleTime CycleTime, typeVariable2 typeVariable)
        {
            this.CycleTime    = CycleTime;
            this.typeVariable = typeVariable;
        }