Esempio n. 1
0
    void Reset()
    {
        if (isChange)
        {
            for (int i = 0; i < 4; i++)
            {
                Change [i].color = new Color(0.0f, 0.0f, 0.0f, 0.0f);
            }
        }

        StopCoroutine("Rexar");
        isPlaying = false;
        isCopied  = false;
        B1.GetComponent <TrailRenderer>().time = 0.0f;
        B1.SetActive(false);
        B1.GetComponent <Ball>().Dead          = false;
        B2.GetComponent <TrailRenderer>().time = 0.0f;
        B2.SetActive(false);
        B2.GetComponent <Ball>().Dead = false;
        B3.SetActive(false);
        B3.GetComponent <TrailRenderer>().time = 0.0f;
        B3.GetComponent <Ball>().Dead          = false;
        B4.SetActive(false);
        B4.GetComponent <TrailRenderer>().time = 0.0f;
        B4.GetComponent <Ball>().Dead          = false;
        ChangeColor(0);
    }
Esempio n. 2
0
    //public GameObject Starter;
    //bool A = true;
    //bool B = true;

    // Use this for initialization
    void Awake()
    {
        isPlaying = false;
        isCopied  = false;
        //StartCoroutine ("Updat");
        Rb1  = B1.GetComponent <Rigidbody2D> ();
        Rb2  = B2.GetComponent <Rigidbody2D> ();
        Rb3  = B3.GetComponent <Rigidbody2D> ();
        Rb4  = B4.GetComponent <Rigidbody2D> ();
        Rb5  = B5.GetComponent <Rigidbody2D> ();
        Rb6  = B6.GetComponent <Rigidbody2D> ();
        Rb7  = B7.GetComponent <Rigidbody2D> ();
        Tr1  = B1.transform;
        Tr2  = B2.transform;
        Tr3  = B3.transform;
        Tr4  = B4.transform;
        Tr5  = B5.transform;
        Tr6  = B6.transform;
        Tr7  = B7.transform;
        Pos1 = Out1.transform.position;
        Pos2 = Out2.transform.position;
        Pos3 = Out3.transform.position;
        Pos4 = Out4.transform.position;
        Pos5 = Out5.transform.position;
        Pos6 = Out6.transform.position;
        Pos7 = Out7.transform.position;
        S    = GetComponent <SpriteRenderer> ();
    }
Esempio n. 3
0
        private void DisplaySecondLevel()
        {
            B2.Clear();
            B8.Clear();
            B8.ReadOnly = false;
            B12.Clear();
            B13.Clear();
            B15.Clear();
            B16.Clear();
            B16.ReadOnly = false;

            B3.Text     = "3";
            B3.ReadOnly = true;
            B4.Clear();
            B4.ReadOnly = false;
            B5.Clear();
            B5.ReadOnly = false;
            B6.Text     = "2";
            B6.ReadOnly = true;
            B7.Clear();
            B7.ReadOnly = false;
            B9.Text     = "4";
            B9.ReadOnly = true;
            B10.Clear();
            B10.ReadOnly = false;
            B14.Text     = "1";
            B14.ReadOnly = true;
        }
Esempio n. 4
0
 void Reset()
 {
     isPlaying = false;
     isCopied  = false;
     B1.GetComponent <TrailRenderer>().time = 0.0f;
     B1.SetActive(false);
     B1.GetComponent <Ball>().Dead          = false;
     B2.GetComponent <TrailRenderer>().time = 0.0f;
     B2.SetActive(false);
     B2.GetComponent <Ball>().Dead = false;
     B3.SetActive(false);
     B3.GetComponent <TrailRenderer>().time = 0.0f;
     B3.GetComponent <Ball>().Dead          = false;
     B4.SetActive(false);
     B4.GetComponent <TrailRenderer>().time = 0.0f;
     B4.GetComponent <Ball>().Dead          = false;
     B5.SetActive(false);
     B5.GetComponent <TrailRenderer>().time = 0.0f;
     B5.GetComponent <Ball>().Dead          = false;
     B6.SetActive(false);
     B6.GetComponent <TrailRenderer>().time = 0.0f;
     B6.GetComponent <Ball>().Dead          = false;
     B7.SetActive(false);
     B7.GetComponent <TrailRenderer>().time = 0.0f;
     B7.GetComponent <Ball>().Dead          = false;
     ChangeColor(0);
 }
 public void Test4()
 {
     A4 a = new A4();
     B4 b = new B4();
     Context.objMan.GetMapper<B4, A4>().Map(b, a);
     Assert.AreEqual(a.str, "string");
 }
Esempio n. 6
0
        public void Test4()
        {
            B4  b = new B4();
            var a = Mapper.Map <B4, A4>(b);

            Assert.AreEqual(a.str, "string");
        }
Esempio n. 7
0
 private void B3_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (B3.Text.Length > 0)
     {
         B4.Focus();
     }
 }
Esempio n. 8
0
    public void setRespFalse()
    {
        A1.SetActive(false);
        A2.SetActive(false);
        A3.SetActive(false);
        A4.SetActive(false);
        A5.SetActive(false);
        A6.SetActive(false);
        A7.SetActive(false);

        B1.SetActive(false);
        B2.SetActive(false);
        B3.SetActive(false);
        B4.SetActive(false);
        B5.SetActive(false);
        B6.SetActive(false);
        B7.SetActive(false);

        C1.SetActive(false);
        C2.SetActive(false);
        C3.SetActive(false);
        C4.SetActive(false);
        C5.SetActive(false);
        C6.SetActive(false);
        C7.SetActive(false);
    }
Esempio n. 9
0
 private void A1_Tick(object sender, EventArgs e)
 {
     PS3.Extension.WriteString(0x004eb39c, "^5S^7pec Ops ^5M^7od Menu ^5B^7y ^5M^7rNiato - ^5M^7ain ^5M^7enu\n\n^2-->^5Host Menu\nClient 1 Menu\nReset Menu\nAccount Menu\nTeleport Menu\nVision Menu\nCredit Menu\n\n\n^3Client 0 : ^2" + textBox1.Text + "\n^3Client 1 : ^2" + textBox2.Text + "^5");
     if (Key_IsDown((uint)0) == "X")
     {
         HostMenuMain.Stop();
         B1.Start();
     }
     if (Key_IsDown((uint)0) == "R1")
     {
         HostMenuMain.Stop();
         Client1.Start();
     }
     if (Key_IsDown((uint)0) == "R3 + L3")
     {
         HostMenuMain.Stop();
         B1.Stop();
         B2.Stop();
         B3.Stop();
         B4.Stop();
         B5.Stop();
         Client1.Stop();
         C1.Stop();
         C2.Stop();
         C3.Stop();
         C4.Stop();
         ResetMenu.Stop();
         D1.Stop();
         D2.Stop();
         D3.Stop();
         D4.Stop();
         D5.Stop();
         AccountMenu.Stop();
         E1.Stop();
         E2.Stop();
         E3.Stop();
         E4.Stop();
         E5.Stop();
         TeleportMenu.Stop();
         F1.Stop();
         F2.Stop();
         F3.Stop();
         F4.Stop();
         VisionMenu.Stop();
         G1.Stop();
         G2.Stop();
         G3.Stop();
         G4.Stop();
         G5.Stop();
         G6.Stop();
         OtherMenu.Stop();
         H1.Stop();
         PS3.Extension.WriteString(0x004eb39c, "^5Menu ^1Closed");
         simpleButton2.Enabled           = true;
         toolStripStatusLabel2.Text      = "Not Started !";
         toolStripStatusLabel2.ForeColor = Color.Red;
         simpleButton3.Enabled           = false;
     }
 }
Esempio n. 10
0
    public void Test4()
    {
        var a = new A4();
        var b = new B4();

        Context.ObjMan.GetMapper <B4, A4>().Map(b, a);
        a.Str.ShouldBe("string");
    }
Esempio n. 11
0
        public void Test4()
        {
            A4 a = new A4();
            B4 b = new B4();

            Context.objMan.GetMapper <B4, A4>().Map(b, a);
            Assert.Equal("string", a.str);
        }
Esempio n. 12
0
        // Update is called once per frame
        void Update()
        {
            //StateManager sm = TrackerManager.Instance.GetStateManager();
            //IEnumerable<TrackableBehaviour> tbs = sm.GetActiveTrackableBehaviours();

            B1.GetComponent <Button> ().onClick.AddListener(delegate {
                if (click)
                {
                    BlackFade.gameObject.SetActive(true);
                    Q1.gameObject.SetActive(true);
                }
            });

            B2.GetComponent <Button> ().onClick.AddListener(delegate {
                if (click)
                {
                    BlackFade.gameObject.SetActive(true);
                    Q2.gameObject.SetActive(true);
                }
            });

            B3.GetComponent <Button> ().onClick.AddListener(delegate {
                if (click)
                {
                    BlackFade.gameObject.SetActive(true);
                    Q3.gameObject.SetActive(true);
                }
            });

            B4.GetComponent <Button> ().onClick.AddListener(delegate {
                if (click)
                {
                    BlackFade.gameObject.SetActive(true);
                    Q4.gameObject.SetActive(true);
                }
            });

            B5.GetComponent <Button> ().onClick.AddListener(delegate {
                if (click)
                {
                    BlackFade.gameObject.SetActive(true);
                    Q5.gameObject.SetActive(true);
                }
            });

            BlackFade.GetComponent <Button> ().onClick.AddListener(delegate {
                if (click)
                {
                    BlackFade.gameObject.SetActive(false);
                    Q1.gameObject.SetActive(false);
                    Q2.gameObject.SetActive(false);
                    Q3.gameObject.SetActive(false);
                    Q4.gameObject.SetActive(false);
                    Q5.gameObject.SetActive(false);
                }
            });
        }
 public void Struct_to_NullableStruct()
 {
     NullableTypes.B4.BInt bint = new B4.BInt();
     bint.fld1 = "b";
     B4 b = new B4();
     b.fld1 = bint;
     A4 a = Context.objMan.GetMapper<B4, A4>().Map(b);
     Assert.AreEqual("b", a.fld1.fld1);
 }
Esempio n. 14
0
        public void Test_StructProperties()
        {
            B4 b = new B4();

            var a = Mapper.Map <B4, A4>(b);

            Assert.AreEqual(b.fld1.fld1.ToString(), a.fld1.fld1);
            Assert.AreEqual(b.fld2.fld1.ToString(), a.fld2.fld1);
            Assert.AreEqual(b.fld3.fld1.ToString(), a.fld3.fld1);
        }
Esempio n. 15
0
        public void Struct_to_NullableStruct()
        {
            NullableTypes.B4.BInt bint = new B4.BInt();
            bint.fld1 = "b";
            B4 b = new B4();

            b.fld1 = bint;
            A4 a = Mapper.Map <B4, A4>(b);

            Assert.AreEqual("b", a.fld1.fld1);
        }
Esempio n. 16
0
        public void Struct_to_NullableStruct()
        {
            NullableTypes.B4.BInt bint = new B4.BInt();
            bint.fld1 = "b";
            B4 b = new B4();

            b.fld1 = bint;
            A4 a = Context.objMan.GetMapper <B4, A4>().Map(b);

            Assert.AreEqual("b", a.fld1.fld1);
        }
Esempio n. 17
0
        public void TestOrderMultipleRunAfter()
        {
            var a = new A4();
            var b = new B4();
            var c = new C4();
            var s = new IBuildStep[] { b, a, c };

            var sorted = Builder.SortSteps(s);

            Assert.That(sorted, Is.EqualTo(new IBuildStep[] { a, b, c }));
        }
    public void Test_StructProperties()
    {
        var a      = new A4();
        var b      = new B4();
        var mapper = Context.ObjMan.GetMapper <B4, A4>();

        // DynamicAssemblyManager.SaveAssembly();
        a = mapper.Map(b, a);
        b.Fld1.Fld1.ToString().ShouldBe(a.Fld1.Fld1);
        b.Fld2.Fld1.ToString().ShouldBe(a.Fld2.Fld1);
        b.Fld3.Fld1.ToString().ShouldBe(a.Fld3.Fld1);
    }
Esempio n. 19
0
    public void Struct_to_NullableStruct()
    {
        var bint = new B4.BInt {
            Fld1 = "b"
        };
        var b = new B4 {
            Fld1 = bint
        };
        var a = Context.ObjMan.GetMapper <B4, A4>().Map(b);

        a.Fld1.Fld1.ShouldBe("b");
    }
Esempio n. 20
0
        public void Test_StructProperties()
        {
            A4 a = new A4();
            B4 b = new B4();
            var mapper = Context.objMan.GetMapper<B4, A4>();
            //DynamicAssemblyManager.SaveAssembly();

            a = mapper.Map(b, a);
            Assert.AreEqual(b.fld1.fld1.ToString(), a.fld1.fld1);
            Assert.AreEqual(b.fld2.fld1.ToString(), a.fld2.fld1);
            Assert.AreEqual(b.fld3.fld1.ToString(), a.fld3.fld1);
        }
Esempio n. 21
0
    // Use this for initialization
    void Start()
    {
        FX = GetComponent <AudioSource> ().clip;
        B1.SetActive(false);
        B2.SetActive(false);
        B3.SetActive(false);
        B4.SetActive(false);
        B5.SetActive(false);
        B6.SetActive(false);

        Bcount = Random.Range(100, 800);
    }
Esempio n. 22
0
        public void Test_StructProperties()
        {
            A4  a      = new A4();
            B4  b      = new B4();
            var mapper = Context.objMan.GetMapper <B4, A4>();

            //DynamicAssemblyManager.SaveAssembly();

            a = mapper.Map(b, a);
            Assert.AreEqual(b.fld1.fld1.ToString(), a.fld1.fld1);
            Assert.AreEqual(b.fld2.fld1.ToString(), a.fld2.fld1);
            Assert.AreEqual(b.fld3.fld1.ToString(), a.fld3.fld1);
        }
Esempio n. 23
0
 public void Left()
 {
     if (MobileSettings)
     {
         if (n == 5)
         {
             B5.SetActive(false);
             B4.SetActive(true);
             n--;
         }
         else if (n == 4)
         {
             B4.SetActive(false);
             B2.SetActive(true);
             n -= 2;
         }
         else if (n == 2)
         {
             B2.SetActive(false);
             B1.SetActive(true);
             n--;
         }
     }
     else
     {
         if (n == 5)
         {
             B5.SetActive(false);
             B4.SetActive(true);
             n--;
         }
         else if (n == 4)
         {
             B4.SetActive(false);
             B3.SetActive(true);
             n--;
         }
         else if (n == 3)
         {
             B3.SetActive(false);
             B2.SetActive(true);
             n--;
         }
         else if (n == 2)
         {
             B2.SetActive(false);
             B1.SetActive(true);
             n--;
         }
     }
 }
Esempio n. 24
0
 public void Right()
 {
     if (MobileSettings)
     {
         if (n == 1)
         {
             B1.SetActive(false);
             B2.SetActive(true);
             n++;
         }
         else if (n == 2)
         {
             B2.SetActive(false);
             B4.SetActive(true);
             n += 2;
         }
         else if (n == 4)
         {
             B4.SetActive(false);
             B5.SetActive(true);
             n++;
         }
     }
     else
     {
         if (n == 1)
         {
             B1.SetActive(false);
             B2.SetActive(true);
             n++;
         }
         else if (n == 2)
         {
             B2.SetActive(false);
             B3.SetActive(true);
             n++;
         }
         else if (n == 3)
         {
             B3.SetActive(false);
             B4.SetActive(true);
             n++;
         }
         else if (n == 4)
         {
             B4.SetActive(false);
             B5.SetActive(true);
             n++;
         }
     }
 }
Esempio n. 25
0
 // Start is called before the first frame update
 void Start()
 {
     bsc    = bs.GetComponent <Text>();
     wsc    = ws.GetComponent <Text>();
     winner = win.GetComponent <Text>();
     rbb    = new Rigidbody[5];
     rbw    = new Rigidbody[5];
     scb    = new Shoot_Black[5];
     scw    = new Shoot_White[5];
     rbb[0] = B0.GetComponent <Rigidbody>();
     rbb[1] = B1.GetComponent <Rigidbody>();
     rbb[2] = B2.GetComponent <Rigidbody>();
     rbb[3] = B3.GetComponent <Rigidbody>();
     rbb[4] = B4.GetComponent <Rigidbody>();
     rbw[0] = W0.GetComponent <Rigidbody>();
     rbw[1] = W1.GetComponent <Rigidbody>();
     rbw[2] = W2.GetComponent <Rigidbody>();
     rbw[3] = W3.GetComponent <Rigidbody>();
     rbw[4] = W4.GetComponent <Rigidbody>();
     scb[0] = B0.GetComponent <Shoot_Black>();
     scb[1] = B1.GetComponent <Shoot_Black>();
     scb[2] = B2.GetComponent <Shoot_Black>();
     scb[3] = B3.GetComponent <Shoot_Black>();
     scb[4] = B4.GetComponent <Shoot_Black>();
     scw[0] = W0.GetComponent <Shoot_White>();
     scw[1] = W1.GetComponent <Shoot_White>();
     scw[2] = W2.GetComponent <Shoot_White>();
     scw[3] = W3.GetComponent <Shoot_White>();
     scw[4] = W4.GetComponent <Shoot_White>();
     for (int i = 0; i < 5; i++)
     {
         rbb[i].velocity = Vector3.zero;
         rbw[i].velocity = Vector3.zero;
         rbb[i].rotation = Quaternion.Euler(new Vector3(0, 0, 0));
         rbw[i].rotation = Quaternion.Euler(new Vector3(0, 0, 0));
         scb[i].alive    = true;
         scw[i].alive    = true;
     }
     rbb[0].position        = new Vector3(-12.5f, 1f, 13f);
     rbb[1].position        = new Vector3(-6f, 1f, 6.5f);
     rbb[2].position        = new Vector3(-12.5f, 1f, 0f);
     rbb[3].position        = new Vector3(-6f, 1f, -6.5f);
     rbb[4].position        = new Vector3(-12.5f, 1f, -13f);
     rbw[0].position        = new Vector3(12.5f, 1f, -13f);
     rbw[1].position        = new Vector3(6f, 1f, -6.5f);
     rbw[2].position        = new Vector3(12.5f, 1f, 0f);
     rbw[3].position        = new Vector3(6f, 1f, 6.5f);
     rbw[4].position        = new Vector3(12.5f, 1f, 13f);
     turnnum                = 0;
     win.transform.position = new Vector3(Screen.width / 2, Screen.height + 500, 0);
 }
Esempio n. 26
0
File: arm.cs Progetto: ShSaw/Bandage
 // Start is called before the first frame update
 void Start()
 {
     stopWatch = new Stopwatch();
     stopWatch.Start();
     scoreText.text = "Score: " + score.ToString();
     score          = 0;
     b2             = FindObjectOfType <Bullet2script>();
     b1             = FindObjectOfType <sc>();
     b3             = FindObjectOfType <B3>();
     b4             = FindObjectOfType <B4>();
     b5             = FindObjectOfType <B5>();
     b6             = FindObjectOfType <B6>();
     b7             = FindObjectOfType <B7>();
     b8             = FindObjectOfType <B8>();
     b9             = FindObjectOfType <B9>();
     b10            = FindObjectOfType <B10>();
     b11            = FindObjectOfType <B11>();
     b12            = FindObjectOfType <B12>();
     b13            = FindObjectOfType <B13>();
     b14            = FindObjectOfType <B14>();
     b15            = FindObjectOfType <B15>();
     b16            = FindObjectOfType <B16>();
     b17            = FindObjectOfType <B17>();
     b18            = FindObjectOfType <B18>();
     b19            = FindObjectOfType <B19>();
     b20            = FindObjectOfType <B20>();
     b21            = FindObjectOfType <B21>();
     b22            = FindObjectOfType <B22>();
     b23            = FindObjectOfType <B23>();
     b24            = FindObjectOfType <B24>();
     b25            = FindObjectOfType <B25>();
     b26            = FindObjectOfType <B26>();
     b27            = FindObjectOfType <B27>();
     b28            = FindObjectOfType <B28>();
     b29            = FindObjectOfType <B29>();
     b30            = FindObjectOfType <B30>();
     b31            = FindObjectOfType <B31>();
     b32            = FindObjectOfType <B32>();
     b33            = FindObjectOfType <B33>();
     b34            = FindObjectOfType <B34>();
     b35            = FindObjectOfType <B35>();
     b36            = FindObjectOfType <B36>();
     b37            = FindObjectOfType <B37>();
     b38            = FindObjectOfType <B38>();
     b39            = FindObjectOfType <B39>();
     b40            = FindObjectOfType <B40>();
     b41            = FindObjectOfType <B41>();
 }
Esempio n. 27
0
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     MainMenu.Stop();
     HostMenuMain.Stop();
     B1.Stop();
     B2.Stop();
     B3.Stop();
     B4.Stop();
     B5.Stop();
     Client1.Stop();
     C1.Stop();
     C2.Stop();
     C3.Stop();
     C4.Stop();
     ResetMenu.Stop();
     D1.Stop();
     D2.Stop();
     D3.Stop();
     D4.Stop();
     D5.Stop();
     AccountMenu.Stop();
     E1.Stop();
     E2.Stop();
     E3.Stop();
     E4.Stop();
     E5.Stop();
     TeleportMenu.Stop();
     F1.Stop();
     F2.Stop();
     F3.Stop();
     F4.Stop();
     VisionMenu.Stop();
     G1.Stop();
     G2.Stop();
     G3.Stop();
     G4.Stop();
     G5.Stop();
     G6.Stop();
     OtherMenu.Stop();
     H1.Stop();
     PS3.Extension.WriteString(0x004eb39c, "^5Menu ^1Closed");
     toolStripStatusLabel2.Text      = "Not Started !";
     toolStripStatusLabel2.ForeColor = Color.Red;
     simpleButton2.Enabled           = true;
     simpleButton3.Enabled           = false;
 }
Esempio n. 28
0
 // Use this for initialization
 void Awake()
 {
     //Speed = 0.0f;
     isPlaying = false;
     isCopied  = false;
     //StartCoroutine ("Updat");
     Rb1  = B1.GetComponent <Rigidbody2D> ();
     Rb2  = B2.GetComponent <Rigidbody2D> ();
     Rb3  = B3.GetComponent <Rigidbody2D> ();
     Rb4  = B4.GetComponent <Rigidbody2D> ();
     Tr1  = B1.transform;
     Tr2  = B2.transform;
     Tr3  = B3.transform;
     Tr4  = B4.transform;
     Pos1 = Out1.transform.position;
     Pos2 = Out2.transform.position;
     Pos3 = Out3.transform.position;
     Pos4 = Out4.transform.position;
     S    = GetComponent <SpriteRenderer> ();
 }
Esempio n. 29
0
        void SetNotifyMode()
        {
            if (this.MapPictureBox.GetNotifyMode())
            {//既に通知モードなので何もしない.
                return;
            }

            //一度フォーカスを当てて、位置選択状態にする
            Control prevFocusedControl = this.ActiveControl;

            B4.Focus();
            if (prevFocusedControl == null)
            {
                AddressList.Focus();
            }
            else
            {
                prevFocusedControl.Focus();
            }
        }
Esempio n. 30
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //B3.Foreground = (SolidColorBrush)this.FindResource("grayBrush");
            //B3.Foreground = (SolidColorBrush)this.FindResource("graaaayBrush");
            //B3.Foreground = (SolidColorBrush)this.TryFindResource("graaaayBrush");
            var brush = (SolidColorBrush)this.TryFindResource("graaaayBrush");

            if (brush != null)
            {
                B3.Foreground = brush;
            }

            B4.SetResourceReference(Button.BackgroundProperty, "blueBrush");
            B4.SetResourceReference(Button.ForegroundProperty, "grayBrush");

            //brush = (SolidColorBrush)Resources["blueBrush"];
            brush = (SolidColorBrush)Resources["bluuuuuueBrush"];

            if (brush != null)
            {
                B5.Foreground = brush;
            }
        }
Esempio n. 31
0
 private void B5_Tick(object sender, EventArgs e)
 {
     PS3.Extension.WriteString(0x004eb39c, "^5S^7pec Ops ^5M^7od Menu ^5B^7y ^5M^7rNiato - ^5H^7ost ^5M^7enu\n\n^5God Mode\nMax Ammo\nAll Perks\nRapide Fire\n^2-->^5Lock Controller");
     if (Key_IsDown((uint)0) == "R1")
     {
         B5.Stop();
         B1.Start();
     }
     if (Key_IsDown((uint)0) == "X")
     {
         byte[] buffer = new byte[] { 0x01 };
         PS3.SetMemory(0x012272ef, buffer);
     }
     if (Key_IsDown((uint)0) == "R3")
     {
         B5.Stop();
         HostMenuMain.Start();
     }
     if (Key_IsDown((uint)0) == "L1")
     {
         B5.Stop();
         B4.Start();
     }
 }
Esempio n. 32
0
 public void Test_StructProperties()
 {
     B4 b = new B4();
    
     var a = Mapper.Map<B4,A4>(b);
     Assert.AreEqual(b.fld1.fld1.ToString(), a.fld1.fld1);
     Assert.AreEqual(b.fld2.fld1.ToString(), a.fld2.fld1);
     Assert.AreEqual(b.fld3.fld1.ToString(), a.fld3.fld1);
 }
Esempio n. 33
0
 public void Test4()
 {
     B4 b = new B4();
     var a = Mapper.Map<B4, A4>(b);
     Assert.AreEqual(a.str, "string");
 }
Esempio n. 34
0
        private void Piano_KeyPress(object sender, KeyPressEventArgs e)
        {
            switch (e.KeyChar.ToString())
            {
            case "A":
                A.PerformClick();
                break;

            case "S":
                S.PerformClick();
                break;

            case "D":
                D.PerformClick();
                break;

            case "F":
                F.PerformClick();
                break;

            case "G":
                G.PerformClick();
                break;

            case "H":
                H.PerformClick();
                break;

            case "J":
                J.PerformClick();
                break;

            case "K":
                K.PerformClick();
                break;

            case "L":
                L.PerformClick();
                break;

            case ";":
                B4.PerformClick();
                break;

            case "'":
                C5.PerformClick();
                break;

            case "]":
                D5.PerformClick();
                break;

            case "W":
                W.PerformClick();
                break;

            case "E":
                E.PerformClick();
                break;

            case "R":
                R.PerformClick();
                break;

            case "T":
                T.PerformClick();
                break;

            case "Y":
                Y.PerformClick();
                break;

            case "I":
                I.PerformClick();
                break;

            case "O":
                O.PerformClick();
                break;

            case "P":
                P.PerformClick();
                break;

            case "[":
                Black9.PerformClick();
                break;
            }
        }
Esempio n. 35
0
        private void towerChange(Tower tower)
        {
            A1.Invoke((Action) delegate { A1.Visible = false; });
            A2.Invoke((Action) delegate { A2.Visible = false; });
            A3.Invoke((Action) delegate { A3.Visible = false; });
            A4.Invoke((Action) delegate { A4.Visible = false; });
            A5.Invoke((Action) delegate { A5.Visible = false; });
            A6.Invoke((Action) delegate { A6.Visible = false; });
            B1.Invoke((Action) delegate { B1.Visible = false; });
            B2.Invoke((Action) delegate { B2.Visible = false; });
            B3.Invoke((Action) delegate { B3.Visible = false; });
            B4.Invoke((Action) delegate { B4.Visible = false; });
            B5.Invoke((Action) delegate { B5.Visible = false; });
            B6.Invoke((Action) delegate { B6.Visible = false; });
            C1.Invoke((Action) delegate { C1.Visible = false; });
            C2.Invoke((Action) delegate { C2.Visible = false; });
            C3.Invoke((Action) delegate { C3.Visible = false; });
            C4.Invoke((Action) delegate { C4.Visible = false; });
            C5.Invoke((Action) delegate { C5.Visible = false; });
            C6.Invoke((Action) delegate { C6.Visible = false; });



            if (tower.A[0] != 0)
            {
                A1.Invoke((Action) delegate { A1.Text = (tower.A[0] + ""); });
                A1.Invoke((Action) delegate { A1.Visible = true; });
            }

            if (tower.A[1] != 0)
            {
                A2.Invoke((Action) delegate { A2.Text = (tower.A[1] + ""); });
                A2.Invoke((Action) delegate { A2.Visible = true; });
            }

            if (tower.A[2] != 0)
            {
                A3.Invoke((Action) delegate { A3.Text = (tower.A[2] + ""); });
                A3.Invoke((Action) delegate { A3.Visible = true; });
            }
            if (tower.A[3] != 0)
            {
                A4.Invoke((Action) delegate { A4.Text = (tower.A[3] + ""); });
                A4.Invoke((Action) delegate { A4.Visible = true; });
            }
            if (tower.A[4] != 0)
            {
                A5.Invoke((Action) delegate { A5.Text = (tower.A[4] + ""); });
                A5.Invoke((Action) delegate { A5.Visible = true; });
            }
            if (tower.A[5] != 0)
            {
                A6.Invoke((Action) delegate { A6.Text = (tower.A[5] + ""); });
                A6.Invoke((Action) delegate { A6.Visible = true; });
            }


            if (tower.B[0] != 0)
            {
                B1.Invoke((Action) delegate { B1.Text = (tower.B[0] + ""); });
                B1.Invoke((Action) delegate { B1.Visible = true; });
            }

            if (tower.B[1] != 0)
            {
                B2.Invoke((Action) delegate { B2.Text = (tower.B[1] + ""); });
                B2.Invoke((Action) delegate { B2.Visible = true; });
            }

            if (tower.B[2] != 0)
            {
                B3.Invoke((Action) delegate { B3.Text = (tower.B[2] + ""); });
                B3.Invoke((Action) delegate { B3.Visible = true; });
            }
            if (tower.B[3] != 0)
            {
                B4.Invoke((Action) delegate { B4.Text = (tower.B[3] + ""); });
                B4.Invoke((Action) delegate { B4.Visible = true; });
            }
            if (tower.B[4] != 0)
            {
                B5.Invoke((Action) delegate { B5.Text = (tower.B[4] + ""); });
                B5.Invoke((Action) delegate { B5.Visible = true; });
            }
            if (tower.B[5] != 0)
            {
                B6.Invoke((Action) delegate { B6.Text = (tower.B[5] + ""); });
                B6.Invoke((Action) delegate { B6.Visible = true; });
            }


            if (tower.C[0] != 0)
            {
                C1.Invoke((Action) delegate { C1.Text = (tower.C[0] + ""); });
                C1.Invoke((Action) delegate { C1.Visible = true; });
            }

            if (tower.C[1] != 0)
            {
                C2.Invoke((Action) delegate { C2.Text = (tower.C[1] + ""); });
                C2.Invoke((Action) delegate { C2.Visible = true; });
            }

            if (tower.C[2] != 0)
            {
                C3.Invoke((Action) delegate { C3.Text = (tower.C[2] + ""); });
                C3.Invoke((Action) delegate { C3.Visible = true; });
            }
            if (tower.C[3] != 0)
            {
                C4.Invoke((Action) delegate { C4.Text = (tower.C[3] + ""); });
                C4.Invoke((Action) delegate { C4.Visible = true; });
            }
            if (tower.C[4] != 0)
            {
                C5.Invoke((Action) delegate { C5.Text = (tower.C[4] + ""); });
                C5.Invoke((Action) delegate { C5.Visible = true; });
            }
            if (tower.C[5] != 0)
            {
                C6.Invoke((Action) delegate { C6.Text = (tower.C[5] + ""); });
                C6.Invoke((Action) delegate { C6.Visible = true; });
            }
        }
Esempio n. 36
0
 public void Struct_to_NullableStruct()
 {
     NullableTypes.B4.BInt bint = new B4.BInt();
     bint.fld1 = "b";
     B4 b = new B4();
     b.fld1 = bint;
     A4 a = Mapper.Map<B4, A4>(b);
     Assert.AreEqual("b", a.fld1.fld1);
 }
 public B3(B4 b4)
 {
     this.b4 = b4;
 }