Ejemplo n.º 1
0
 public Class65(Interface3 A_0)
 {
     this.interface3_0 = A_0;
     this.interface1_0 = null;
     this.int_0        = this.interface3_0.imethod_3();
     this.int_1        = 0;
 }
 /// <summary>
 /// 通过autofac 注入,自定扩展的实例
 /// </summary>
 /// <param name="interface1"></param>
 /// <param name="interface2"></param>
 /// <param name="interface3"></param>
 public AutofacController(Interface1 interface1, Interface2 interface2, Interface3 interface3, InterfaceA interfaceA)
 {
     interface1.Show();//通过配置文件注入的实例
     this._Interface1 = interface1;
     this._Interface2 = interface2;
     this._Interface3 = interface3;
     this._interfaceA = interfaceA;
 }
Ejemplo n.º 3
0
        public ValuesController(Interface1 i1, Interface2 i2, Interface3 i3, IServiceProvider provider)
        {
            Console.WriteLine(i1.function1());
            Console.WriteLine(i2.function2());
            Console.WriteLine(i3.function3());
            var test = provider.GetService <Interface3>();

            Console.WriteLine(test.function3());
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            D          obj1 = new D();
            Interface3 obj2 = (Interface3)obj1; // this is explicit interface implementation
            Interface4 obj3 = (Interface4)obj1;

            obj2.F2();
            obj3.F2();
            Console.ReadLine();
        }
Ejemplo n.º 5
0
        public static void Main()
        {
            Testing4   t    = new Testing4();
            Interface3 inf  = t;
            Interface5 inf1 = t;

            inf.show();
            inf1.show();
            Console.ReadKey();
        }
Ejemplo n.º 6
0
        public static Interface3 smethod_0(Interface8 reader)
        {
            string key = reader.imethod_14();

            Class607.Delegate16 delegate16;
            if (!Class607.dictionary_0.TryGetValue(key, out delegate16))
            {
                throw new Exception0("Not supported blend support curve type : " + key);
            }
            Interface3 nterface3 = delegate16();

            nterface3.imethod_0(reader);
            return(nterface3);
        }
Ejemplo n.º 7
0
        public static void TestAliases()
        {
            var             c2 = new Class2();
            Class1 <string> c1 = c2;
            Interface2      i2 = c2;
            Interface3      i3 = c2;
            Interface1      i1 = c2;

            c1.Name = "test";

            Assert.AreEqual("test", c2.Name, "Generic class, multiple-inheritance works.");
            Assert.AreEqual("test", i1.Name, "Base-level interface works.");
            Assert.AreEqual("test", i2.Name, "Inherit-driven interface 1 works.");
            Assert.AreEqual("test", i3.Name, "Inherit-driven interface 2 works.");
        }
Ejemplo n.º 8
0
    public static Class615 smethod_0(Interface1 A_0, Interface30 A_1, float A_2)
    {
        int        num        = 13;
        Interface3 interface2 = A_0 as Interface3;

        if (interface2 != null)
        {
            if (interface2.imethod_0().imethod_22())
            {
                return(new Class617(interface2, A_1));
            }
            return(new Class616(interface2, A_1));
        }
        Interface2 interface4 = A_0 as Interface2;

        if ((A_0 is Field) && ((A_0 as Field).Type == FieldType.FieldSymbol))
        {
            interface4 = (A_0 as Field).method_46();
        }
        if ((interface4 != null) && !(interface4 is TextBox))
        {
            return(new Class619(interface4, A_1));
        }
        Interface4 interface3 = null;

        if (A_0 is Interface4)
        {
            interface3 = A_0 as Interface4;
        }
        else if (A_0 is TextBox)
        {
            interface3 = (A_0 as TextBox).method_78(A_1);
        }
        if (interface3 != null)
        {
            return(new Class618(interface3, A_1));
        }
        Class820 class2 = A_0 as Class820;

        if (class2 == null)
        {
            throw new ArgumentException(BookmarkStart.b("稲嬴䄶堸场吼嬾慀㑂ⱄ⍆⹈⹊㥌潎═⩒╔㉖捘筚", num) + A_0.GetType());
        }
        return(new Class618(class2, A_1));
    }
Ejemplo n.º 9
0
 internal override void vmethod_0(Interface8 reader)
 {
     base.vmethod_0(reader);
     this.int_2 = reader.imethod_5();
     if (this.int_2 == 0)
     {
         this.interface3_0 = (Interface3) new Class607();
         this.interface3_0.imethod_0(reader);
     }
     else
     {
         reader.imethod_0(reader.imethod_7(), (Delegate10)(entity => this.class88_0 = (Class88)entity));
         if (reader.FileFormatVersion < Class250.int_11)
         {
             return;
         }
         this.class439_0 = new Class439(reader.imethod_8(), reader.imethod_8());
     }
 }
Ejemplo n.º 10
0
    public Class65(Interface3 A_0, Interface1 A_1, int A_2)
    {
        int num = 0x11;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("吶嘸唺䤼帾⡀ⵂ⁄㕆", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("吶䰸䤺似娾⽀㝂ل⽆⁈❊⥌", num));
        }
        if (A_2 < 0)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("儶倸䤺丼䬾ࡀⵂ⅄≆ㅈ", num), A_2, BookmarkStart.b("愶堸场䠼娾慀⁂⑄⥆楈╊≌㭎煐ㅒご睖㕘㹚⹜ⱞ䅠卢", num));
        }
        this.interface3_0 = A_0;
        this.interface1_0 = A_1;
        this.int_0        = A_2;
    }
Ejemplo n.º 11
0
        public static void Main(string[] args)
        {
            #region  IServiceCollection容器的使用 【1111】

            IServiceCollection container = new ServiceCollection();
            container.AddSingleton <Interface1>(new Class1());
            container.AddTransient <Interface2, Class2>();
            container.AddScoped <Interface3, Class3>();//作用域

            ServiceProvider serviceProvider1 = container.BuildServiceProvider();
            ServiceProvider serviceProvider2 = container.BuildServiceProvider();

            //单例比较
            Interface1 interface11 = serviceProvider1.GetService <Interface1>();
            Interface1 interface12 = serviceProvider1.GetService <Interface1>();
            bool       b1          = object.ReferenceEquals(interface11, interface12);//true


            //瞬时对象
            Interface2 interface21 = serviceProvider1.GetService <Interface2>();
            Interface2 interface22 = serviceProvider1.GetService <Interface2>();
            bool       b2          = object.ReferenceEquals(interface21, interface22);//false

            //作用域
            Interface3 interface31 = serviceProvider1.GetService <Interface3>();
            Interface3 interface32 = serviceProvider1.GetService <Interface3>();
            bool       b3          = object.ReferenceEquals(interface31, interface32);//true
            //作用域对比
            Interface3 interface33 = serviceProvider2.GetService <Interface3>();
            Interface3 interface34 = serviceProvider2.GetService <Interface3>();
            bool       b4          = object.ReferenceEquals(interface31, interface33);

            #endregion

            CreateWebHostBuilder(args).Build().Run();//创建一个服务器/可以理解为IIS服务器
        }
Ejemplo n.º 12
0
 public override void imethod_0(Interface8 reader)
 {
     this.double_9  = reader.imethod_8();
     this.double_10 = reader.imethod_8();
     this.double_11 = reader.imethod_8();
     this.double_12 = reader.imethod_8();
     this.double_8  = reader.imethod_8();
     base.imethod_0(reader);
     this.vector3D_0 = reader.imethod_19();
     if (reader.FileFormatVersion < Class250.int_68)
     {
         this.class188_1 = Class188.smethod_0(reader);
     }
     this.double_13 = reader.imethod_8();
     if (reader.FileFormatVersion >= Class250.int_42)
     {
         this.class1046_0.imethod_0(reader);
     }
     if (reader.FileFormatVersion < Class250.int_57)
     {
         return;
     }
     this.interface3_0 = Class607.smethod_0(reader);
 }
Ejemplo n.º 13
0
    private void method_16(Class196 A_0, RectangleF A_1, Interface18 A_2)
    {
        bool flag = false;
        int  num  = 0;

        A_1 = new RectangleF(new PointF(A_1.Location.X, A_1.Location.Y + 12f), new SizeF(A_1.Width, A_1.Height - 12f));
        foreach (Footnote footnote in A_0.method_127())
        {
            Class615 class2 = Class615.smethod_0(footnote.TextBody, this, A_1.Width);
            Class375 class3 = class2.vmethod_0(A_1);
            if (class2.method_15() || ((class2.method_1() == LayoutState.NotFitted) && (class2.method_0() != null)))
            {
                RectangleF ef;
                A_0.method_28().method_5().method_7(class3);
                A_2.imethod_1(out ef, out A_1, ref num, ref flag, true);
                A_1.Y += 12f;
                Interface3 interface2 = class2.method_0() as Interface3;
                class2 = Class615.smethod_0(interface2, this, A_1.Width);
                class3 = class2.vmethod_0(A_1);
            }
            A_0.method_28().method_5().method_7(class3);
            A_1 = class2.method_3().method_13();
        }
    }
Ejemplo n.º 14
0
    IEnumerator EmgStopCheck()
    {
        checkEmgStop = false;

        yield return(new WaitForSeconds(0.05f));

        var EMG1 = Interface1.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG1 == null)
        {
            idle1.SetActive(true);
            emergency1.SetActive(false);
            good1.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG1 != null && EMG1.ToString() == active)
        {
            emergency1.SetActive(true);
            idle1.SetActive(false);
            good1.SetActive(false);
            overlayGood.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 1!";
        }
        if (EMG1 != null && EMG1.ToString() == inactive)
        {
            good1.SetActive(true);
            idle1.SetActive(false);
            emergency1.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG2 = Interface2.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG2 == null)
        {
            idle2.SetActive(true);
            emergency2.SetActive(false);
            good2.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG2 != null && EMG2.ToString() == active)
        {
            emergency2.SetActive(true);
            idle2.SetActive(false);
            good2.SetActive(false);
            overlayGood.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 2!";
        }
        if (EMG2 != null && EMG2.ToString() == inactive)
        {
            good2.SetActive(true);
            idle2.SetActive(false);
            emergency2.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG3 = Interface3.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG3 == null)
        {
            idle3.SetActive(true);
            emergency3.SetActive(false);
            good3.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG3 != null && EMG3.ToString() == active)
        {
            emergency3.SetActive(true);
            idle3.SetActive(false);
            good3.SetActive(false);
            overlayGood.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 3!";
        }
        if (EMG3 != null && EMG3.ToString() == inactive)
        {
            good3.SetActive(true);
            idle3.SetActive(false);
            emergency3.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG4 = Interface4.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG4 == null)
        {
            idle4.SetActive(true);
            emergency4.SetActive(false);
            good4.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG4 != null && EMG4.ToString() == active)
        {
            emergency4.SetActive(true);
            idle4.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 4!";
        }
        if (EMG4 != null && EMG4.ToString() == inactive)
        {
            good4.SetActive(true);
            idle4.SetActive(false);
            emergency4.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG5 = Interface5.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG5 == null)
        {
            idle5.SetActive(true);
            emergency5.SetActive(false);
            good5.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG5 != null && EMG5.ToString() == active)
        {
            emergency5.SetActive(true);
            idle5.SetActive(false);
            good5.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 5!";
        }
        if (EMG5 != null && EMG5.ToString() == inactive)
        {
            good5.SetActive(true);
            idle5.SetActive(false);
            emergency5.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG6 = Interface6.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG6 == null)
        {
            idle6.SetActive(true);
            emergency6.SetActive(false);
            good6.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG6 != null && EMG6.ToString() == active)
        {
            emergency6.SetActive(true);
            idle6.SetActive(false);
            good6.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 6!";
        }
        if (EMG6 != null && EMG6.ToString() == inactive)
        {
            good6.SetActive(true);
            idle6.SetActive(false);
            emergency6.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG7 = Interface7.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG7 == null)
        {
            idle7.SetActive(true);
            emergency7.SetActive(false);
            good7.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG7 != null && EMG7.ToString() == active)
        {
            emergency7.SetActive(true);
            idle7.SetActive(false);
            good7.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 7!";
        }
        if (EMG7 != null && EMG7.ToString() == inactive)
        {
            good7.SetActive(true);
            idle7.SetActive(false);
            emergency7.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG8 = Interface8.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG8 == null)
        {
            idle8.SetActive(true);
            emergency8.SetActive(false);
            good8.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG8 != null && EMG4.ToString() == active)
        {
            emergency8.SetActive(true);
            idle4.SetActive(false);
            good8.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 8!";
        }
        if (EMG8 != null && EMG8.ToString() == inactive)
        {
            good8.SetActive(true);
            idle8.SetActive(false);
            emergency8.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.05f));

        var EMG9 = Interface9.ReadNodeValue("ns=3;s=\"dbOpPanel\".\"OpPanelBtn\".\"xEmStop\"");

        if (EMG9 == null)
        {
            idle9.SetActive(true);
            emergency9.SetActive(false);
            good9.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }
        if (EMG9 != null && EMG9.ToString() == active)
        {
            emergency9.SetActive(true);
            idle9.SetActive(false);
            good9.SetActive(false);
            good4.SetActive(false);
            overlayEmergency.SetActive(true);
            info.text = "Check emergency on Machine 9!";
        }
        if (EMG9 != null && EMG9.ToString() == inactive)
        {
            good9.SetActive(true);
            idle9.SetActive(false);
            emergency9.SetActive(false);
            overlayGood.SetActive(true);
            overlayEmergency.SetActive(false);
            info.text = "No emergency";
        }

        yield return(new WaitForSeconds(0.5f));

        checkEmgStop = true;
    }
 public ClassWithManyValidCtors(Interface1 interface1, Interface2 interface2, Interface3 interface3)
 {
     Interface1 = interface1;
     Interface2 = interface2;
     Interface3 = interface3;
 }
Ejemplo n.º 16
0
 public Interface2 Method5(Interface3 i)
 {
     return(i);
 }
Ejemplo n.º 17
0
 public static void Consider(Interface3 interface4)
 {
     interface4.Think();
 }
 public ClassWithManyValidCtorsWithSameAmountOfParameters(Interface2 interface2, Interface3 interface3)
 {
     Interface2 = interface2;
     Interface3 = interface3;
 }
Ejemplo n.º 19
0
 public Test2(Interface1 i1, Interface3 i3, Interface5 i5)
 {
 }
Ejemplo n.º 20
0
 public static void smethod_1(Interface9 writer, Interface3 subEntity, Interface4 subTagged)
 {
     writer.imethod_13(subTagged.imethod_2(writer.FileFormatVersion));
     subEntity.imethod_1(writer);
 }
Ejemplo n.º 21
0
    public void method_15(Interface3 A_0, Interface18 A_1, Class196 A_2)
    {
        RectangleF ef;
        RectangleF ef2;

        this.bool_0 = A_0 is HeaderFooter;
        bool              flag       = false;
        bool              flag2      = true;
        Interface3        interface2 = A_0;
        List <Interface3> list       = new List <Interface3>();
        List <Class375>   list2      = new List <Class375>();

        this.class196_0 = A_2;
        this.class196_0.method_136(this.bool_0);
        this.class196_0.method_133(A_1);
        this.int_0 = 0;
        while (A_1.imethod_1(out ef, out ef2, ref this.int_0, ref flag, flag2))
        {
            if (ef2.Equals(RectangleF.Empty))
            {
                return;
            }
            this.rectangleF_1 = ef2;
            this.imethod_2(ef);
            Class615 class2 = Class615.smethod_0(interface2, this, ef2.Width);
            Class375 class3 = class2.vmethod_0(ef2);
            if (!flag)
            {
                list.Clear();
                list2.Clear();
                A_1.imethod_2(class3);
            }
            else
            {
                list.Insert(list.Count, interface2);
                list2.Insert(list2.Count, class3);
            }
            if (!class2.method_15() && (((class2.method_1() != LayoutState.NotFitted) || (class2.method_0() == null)) || (!(class2.method_0() is Class65) || !((class2.method_0() as Class65).imethod_4(0) is Section))))
            {
                if ((interface2 is Document) || ((interface2 is Class65) && ((interface2 as Class65).method_2() is Document)))
                {
                    this.method_16(A_2, class2.method_3().method_13(), A_1);
                    return;
                }
                break;
            }
            if ((class2.method_1() == LayoutState.NotFitted) && (class2.method_0() != null))
            {
                (this.delegate3_0.Target as Class195).method_36(true);
            }
            this.method_18(class2);
            Class65 class4 = class2.method_0() as Class65;
            bool    flag3  = flag;
            if (A_1.imethod_4(class4, class2.method_1(), class3, ref flag3))
            {
                if (flag3 && flag)
                {
                    int count = list2.Count;
                    for (int i = 0; i < count; i++)
                    {
                        A_1.imethod_2(list2[0]);
                        list.RemoveAt(0);
                        list2.RemoveAt(0);
                    }
                }
                else if (flag)
                {
                    A_1.imethod_3(class3);
                }
                interface2 = class4;
            }
            else
            {
                A_1.imethod_3(class3);
                if (list.Count > 0)
                {
                    interface2 = list[0];
                }
            }
        }
    }
Ejemplo n.º 22
0
 public Interface2 Method5(Interface3 i)
 {
     return i;
 }
Ejemplo n.º 23
0
 public Facade()
 {
     interface1 = new Class1();
     interface2 = new Class2();
     interface3 = new Class3();
 }
Ejemplo n.º 24
0
 public Class617(Interface3 A_0, Interface30 A_1) : base(A_0, A_1)
 {
     base.bool_0 = true;
 }
Ejemplo n.º 25
0
 public ClassWithManyInterfacesInCtor(Interface1 interface1, Interface2 interface2, Interface3 interface3)
 {
     Interface1 = interface1;
     Interface2 = interface2;
     Interface3 = interface3;
 }
Ejemplo n.º 26
0
    // Update is called once per frame
    void Update()
    {
        var ONE = Interface1.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text1    = ("RFID tag at machine 1 is ") + ONE.ToString();
        FM1.text = text1;
        if (ONE == null)
        {
            FM1.text = ("No reading RFID machine 1");
        }

        var TWO = Interface2.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text2    = ("RFID tag at machine 2 is ") + TWO.ToString();
        FM2.text = text2;
        if (TWO == null)
        {
            FM2.text = ("No reading RFID machine 2");
        }

        var THREE = Interface3.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text3    = ("RFID tag at machine 3 is ") + THREE.ToString();
        FM3.text = text3;
        if (THREE == null)
        {
            FM3.text = ("No reading RFID machine 3");
        }

        var FOUR = Interface4.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text4    = ("RFID tag at machine 4 is ") + FOUR.ToString();
        FM4.text = text4;
        if (FOUR == null)
        {
            FM4.text = ("No reading RFID machine 4");
        }

        var FIVE = Interface5.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text5    = ("RFID tag at machine 5 is ") + FIVE.ToString();
        FM5.text = text5;
        if (FIVE == null)
        {
            FM5.text = ("No reading RFID machine 5");
        }

        var SIX = Interface6.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text6    = ("RFID tag at machine 6 is ") + SIX.ToString();
        FM6.text = text6;
        if (SIX == null)
        {
            FM6.text = ("No reading RFID machine 6");
        }

        var SEVEN = Interface7.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text7    = ("RFID tag at machine 7 is ") + SEVEN.ToString();
        FM7.text = text7;
        if (SEVEN == null)
        {
            FM7.text = ("No reading RFID machine 7");
        }

        var EIGHT = Interface8.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text8    = ("RFID tag at machine 8 is ") + EIGHT.ToString();
        FM8.text = text8;
        if (EIGHT == null)
        {
            FM8.text = ("No reading RFID machine 8");
        }

        var NINE = Interface9.ReadNodeValue("ns = 3; s = \"dbRfidData\".\"ID1\".\"iCarrierID\"");

        text9    = ("RFID tag at machine 9 is ") + NINE.ToString();
        FM9.text = text9;
        if (NINE == null)
        {
            FM9.text = ("No reading RFID machine 9");
        }
    }
Ejemplo n.º 27
0
 public static void Do(Interface3 i)
 {
     i.IN1();
 }
Ejemplo n.º 28
0
 // Token: 0x0600069C RID: 1692 RVA: 0x00006569 File Offset: 0x00004769
 public Class49(Interface3 interface3_1)
 {
     this.interface3_0 = interface3_1;
 }
Ejemplo n.º 29
0
    IEnumerator RFIDDataCheck()
    {
        timeToCheck = false;

        yield return(new WaitForSeconds(0.15f));

        var ONE = Interface1.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (ONE == null)
        {
            FM1.text = ("No reading RFID machine 1");
        }
        else
        {
            text1    = ("The last RFID tag at machine 1 was ") + ONE.ToString();
            FM1.text = text1;
        }

        yield return(new WaitForSeconds(0.15f));

        var TWO = Interface2.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (TWO == null)
        {
            FM2.text = ("No reading RFID machine 2");
        }
        else
        {
            text2    = ("The last RFID tag at machine 2 was ") + TWO.ToString();
            FM2.text = text2;
        }

        yield return(new WaitForSeconds(0.15f));

        var THREE = Interface3.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (THREE == null)
        {
            FM3.text = ("No reading RFID machine 3");
        }
        else
        {
            text1    = ("The last RFID tag at machine 3 was ") + THREE.ToString();
            FM3.text = text3;
        }

        yield return(new WaitForSeconds(0.15f));

        var FOUR = Interface4.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (FOUR == null)
        {
            FM4.text = ("No reading RFID machine 4");
        }
        else
        {
            text4    = ("The last RFID tag at machine 4 was ") + FOUR.ToString();
            FM4.text = text4;
        }

        yield return(new WaitForSeconds(0.15f));

        var FIVE = Interface5.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (FIVE == null)
        {
            FM5.text = ("No reading RFID machine 5");
        }
        else
        {
            text5    = ("The last RFID tag at machine 5 was ") + FIVE.ToString();
            FM5.text = text5;
        }

        yield return(new WaitForSeconds(0.15f));

        var SIX = Interface6.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (SIX == null)
        {
            FM6.text = ("No reading RFID machine 6");
        }
        else
        {
            text6    = ("The last RFID tag at machine 6 was ") + SIX.ToString();
            FM6.text = text6;
        }

        yield return(new WaitForSeconds(0.15f));

        var SEVEN = Interface7.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (SEVEN == null)
        {
            FM7.text = ("No reading RFID machine 7");
        }
        else
        {
            text7    = ("The last RFID tag at machine 7 was ") + SEVEN.ToString();
            FM7.text = text7;
        }

        yield return(new WaitForSeconds(0.15f));

        var EIGHT = Interface8.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (EIGHT == null)
        {
            FM8.text = ("No reading RFID machine 8");
        }
        else
        {
            text8    = ("The last RFID tag at machine 8 was ") + EIGHT.ToString();
            FM8.text = text8;
        }

        yield return(new WaitForSeconds(0.15f));

        var NINE = Interface9.ReadNodeValue("ns=3;s=\"dbRfidData\".\"ID1\".\"iCarrierID\"");

        if (NINE == null)
        {
            FM9.text = ("No reading RFID machine 9");
        }
        else
        {
            text9    = ("The last RFID tag at machine 9 was ") + NINE.ToString();
            FM9.text = text9;
        }

        yield return(new WaitForSeconds(0.3f));

        timeToCheck = true;
    }