예제 #1
0
        private void XjcAddr(TextBox txt, Xjc xjc)
        {
            Binding myBinding = new Binding("PhysicalAddr");

            myBinding.Source = xjc.DataRead;
            AddrToStringConverter converter = new AddrToStringConverter();

            myBinding.Converter = converter;
            txt.SetBinding(TextBox.TextProperty, myBinding);
        }
예제 #2
0
 private void IniJobAndNonJobCar()
 {
     TJob       = new Tjc(1);
     LJob       = new Ljc(1);
     XJob       = new Xjc(1);
     TJobCarLst = new List <Vehicle>();
     TJobCarLst.AddRange(new Vehicle[] { TJob, LJob, XJob });
     TNonJob      = new Vehicles.Tjc(2);
     LNonJob      = new Ljc(2);
     XNonJob      = new Xjc(2);
     NonJobCarLst = new List <Vehicle>();
     NonJobCarLst.AddRange(new Vehicle[] { TNonJob, LNonJob, XNonJob });
 }
예제 #3
0
파일: CarsData.xaml.cs 프로젝트: RL-BB/WGPM
        private void XBinding()
        {
            Xjc x1 = (Xjc)Communication.CarsLst[4];
            Xjc x2 = (Xjc)Communication.CarsLst[5];

            UnitBinding(xjc, x1, x2);
            BoolCellBinding(xAllowPush, "AllowPush", x1, x2);
            BoolCellBinding(xCanReady, "CanReady", x1, x2);
            BoolCellBinding(xCanNum, "CanNum", x1, x2);
            BoolCellBinding(xDry, "Dry", x1, x2);
            BoolCellBinding(xBan, "Ban", x1, x2);
            BoolCellBinding(xFstCan, "FstCan", x1, x2);
            BoolCellBinding(xSecCan, "SecCan", x1, x2);
        }