示例#1
0
        public void MsgBoxLogin(String login, String psw, View.IOnClickListener btn2lst)
        {
            invisible();
            Dialog.SetTitle("Login/Password");
            Edit1.SetText(login, TextView.BufferType.Normal);
            Edit2.SetText(psw, TextView.BufferType.Normal);
            Button1.SetText("CANCEL", TextView.BufferType.Normal);
            Button2.SetText("OK", TextView.BufferType.Normal);
            Text1.Visibility = ViewStates.Visible;
            Text1.SetText("Login", TextView.BufferType.Normal);
            Text2.Visibility = ViewStates.Visible;
            Text2.SetText("Password", TextView.BufferType.Normal);
            Button1.Visibility = ViewStates.Visible;
            Button2.Visibility = ViewStates.Visible;
            Edit1.Visibility   = ViewStates.Visible;
            Edit2.Visibility   = ViewStates.Visible;
//			btn1.SetOnClickListener (new View.IOnClickListener ());//{public void onClick(View v){dialog.cancel();}});
//			btn2.SetOnClickListener(btn2lst);
            try
            {
                Dialog.Show();
            }
            catch (Exception err)
            {
                Log.Debug("xxx", err.Message);
            }
        }
示例#2
0
        public override string GenerateJson(bool topLevel)
        {
            var b = new StringBuilder(base.GenerateJson(false));

            var s = Text1.GenerateJson(false);

            if (!string.IsNullOrWhiteSpace(s) && s != "\"\"")
            {
                b.AppendFormat(s.StartsWith("\"") ? "Text1:{0}," : "Text1:\"{0}\",", s);
            }

            s = Text2.GenerateJson(false);
            if (!string.IsNullOrWhiteSpace(s) && s != "\"\"")
            {
                b.AppendFormat(s.StartsWith("\"") ? "Text2:{0}," : "Text2:\"{0}\",", s);
            }

            s = Text3.GenerateJson(false);
            if (!string.IsNullOrWhiteSpace(s) && s != "\"\"")
            {
                b.AppendFormat(s.StartsWith("\"") ? "Text3:{0}," : "Text3:\"{0}\",", s);
            }

            s = Text4.GenerateJson(false);
            if (!string.IsNullOrWhiteSpace(s) && s != "\"\"")
            {
                b.AppendFormat(s.StartsWith("\"") ? "Text4:{0}," : "Text4:\"{0}\",", s);
            }

            return(b.ToString());
        }
示例#3
0
        private void OnTimedEvent2(object sender, ElapsedEventArgs e)
        {
            BarraProgresso3.ProgressTo(1, 5000, Easing.Linear);

            Text2.TranslateTo(0, 0, 500, Easing.Linear);
            Text2.FadeTo(0, 400, Easing.SinInOut);

            Text4.TranslateTo(0, 290, 500, Easing.Linear);

            Planet.TranslateTo(0, 350, 400, Easing.Linear);
            Planet.FadeTo(0, 600, Easing.SinInOut);

            Imagens.FadeTo(0, 300);
            Imagens.TranslateTo(0, 560, 2000, Easing.Linear);
            Imagens.ScaleTo(0, 500, Easing.Linear);

            Setas.TranslateTo(130, 0, 500, Easing.Linear);

            icons1.FadeTo(1, 700, Easing.SinInOut);
            icons1.ScaleTo(2, 1000);
            icons1.ScaleTo(1, 1000, Easing.SpringOut);

            icons2.FadeTo(1, 700, Easing.SinInOut);
            icons2.ScaleTo(2, 1000);
            icons2.ScaleTo(1, 1000, Easing.SpringOut);
        }
 public AtmButtonControl(AtmButton atmButton)
 {
     InitializeComponent();
     ButtonText0   = atmButton.Text0;
     ButtonText1   = atmButton.Text1;
     ButtonText2   = atmButton.Text2;
     ButtonText3   = atmButton.Text3;
     Text0Color    = atmButton.Text0Color.ToString() != "#00000000" ? atmButton.Text0Color : Colors.White;
     Text1Color    = atmButton.Text1Color.ToString() != "#00000000" ? atmButton.Text1Color : Colors.White;
     Text2Color    = atmButton.Text2Color.ToString() != "#00000000" ? atmButton.Text2Color : Colors.White;
     Text3Color    = atmButton.Text3Color.ToString() != "#00000000" ? atmButton.Text3Color : Colors.White;
     MainText.Text = atmButton.MainText;
     ImagePath     = atmButton.ImagePath;
     Name          = atmButton.Name + DateTime.Now.Ticks;
     ButtonImage.SetValue(NameProperty, Name);
     MainText.SetValue(NameProperty, Name);
     Text0.SetValue(NameProperty, Name);
     Text1.SetValue(NameProperty, Name);
     Text2.SetValue(NameProperty, Name);
     Text3.SetValue(NameProperty, Name);
     IsRightButton = atmButton.IsRightButton;
     if (IsRightButton)
     {
         ButtonGrid.HorizontalAlignment = HorizontalAlignment.Right;
     }
 }
示例#5
0
        private void OnTimedEvent1(object sender, ElapsedEventArgs e)
        {
            BarraProgresso2.ProgressTo(1, 5000, Easing.Linear);

            Text1.TranslateTo(-500, 0, 500, Easing.Linear);

            Text2.TranslateTo(370, 0, 500, Easing.Linear);

            Text3.TranslateTo(70, 0, 500, Easing.Linear);
            Text3.FadeTo(0, 600, Easing.SinInOut);


            Imagens.FadeTo(1, 500, Easing.SinInOut);

            Planet.TranslateTo(-80, 175, 500, Easing.Linear);
            Planet.ScaleTo(2.5, 500);

            Timer timer = new Timer();

            timer.Interval = 5000;

            timer.Elapsed += OnTimedEvent2;

            timer.AutoReset = false;

            timer.Enabled = true;
        }
        public unsafe void Length_Growing_SetsNulls()
        {
            const string Text1 = "foobar";
            var          vsb   = new ValueStringBuilder();

            // Shrink then grow within capacity
            vsb.Append(Text1);
            Assert.Equal(Text1.Length, vsb.Length);
            vsb.Length = 3;
            Assert.Equal(3, vsb.Length);
            vsb.Length = 6;
            Assert.Equal(6, vsb.Length);
            Assert.Equal("foo\0\0\0", vsb.ToString());

            // Grow over capacity
            const string Text2      = "bar";
            Span <char>  stackSpace = stackalloc char[Text2.Length];
            var          vsb2       = new ValueStringBuilder(stackSpace);

            Assert.Equal(0, vsb2.Length);
            vsb2.Append(Text2);
            Assert.True(Text2.AsReadOnlySpan().SequenceEqual(stackSpace), "existing stack buffer should have been used");
            Assert.Equal(Text2.Length, vsb2.Length);
            vsb2.Length = 6;
            Assert.Equal(6, vsb2.Length);
            Assert.Equal("bar\0\0\0", vsb2.ToString());
        }
示例#7
0
 // Update is called once per frame
 void Update()
 {
     Text1.GetComponent <Text>().text = "" + PlayerManager.player[0].WatchWallet();
     Text2.GetComponent <Text>().text = "" + PlayerManager.player[1].WatchWallet();
     Text3.GetComponent <Text>().text = "" + PlayerManager.player[2].WatchWallet();
     Text4.GetComponent <Text>().text = "" + PlayerManager.player[3].WatchWallet();
 }
示例#8
0
    private void Debug()
    {
        Text TextX = Text1.GetComponent <Text>();
        Text TextY = Text2.GetComponent <Text>();
        Text TextZ = Text3.GetComponent <Text>();

        TextX.text = "X : " + TmpX;
        TextY.text = "Y : " + TmpY;
        TextZ.text = "Z : " + TmpZ;
    }
        private void Text2_KeyPress(System.Object _sender, System.Windows.Forms.KeyPressEventArgs _e1)
        {
            int KeyAscii = (short)(_e1.KeyChar);

            if (!((KeyAscii >= (short)("0"[0]) && KeyAscii <= (short)("9"[0]) || KeyAscii == Keys.Back || KeyAscii == Keys.KeyDelete || KeyAscii == Keys.Space || KeyAscii == Keys.Return)))
            {
                MessageBox.Show("Maaf Hanya Boleh Diisi Angka Saja", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
                KeyAscii = 0;
                Text2.Focus();
            }
        }
示例#10
0
    // Désactive les textes
    IEnumerator DisparaitreMessage() // IEnumerator est utiliser pour faire une pause
    {
        // Arrête l'exécution de la coroutine pendant 13 secondes
        yield return(new WaitForSeconds(13f));

        // Désactive les textes d'information
        Text1.SetActive(false); // Désactive le texte d'information
        Text2.SetActive(false); // Désactive le texte d'information
        Text3.SetActive(false); // Désactive le texte d'information
        Text4.SetActive(false); // Désactive le texte d'information
        Text5.SetActive(false); // Désactive le texte d'information
    }
示例#11
0
    public GameObject Text1, Text2, Text3, Text4, Text5; // Les textes d'information

    // Fonction qui fait apparaitre les messages
    public void Message()
    {
        // Active les textes d'information qui sont, à l'origine, désactivés
        Text1.SetActive(true); // Active le texte d'information qui est, à l'origine, désactivé
        Text2.SetActive(true); // Active le texte d'information qui est, à l'origine, désactivé
        Text3.SetActive(true); // Active le texte d'information qui est, à l'origine, désactivé
        Text4.SetActive(true); // Active le texte d'information qui est, à l'origine, désactivé
        Text5.SetActive(true); // Active le texte d'information qui est, à l'origine, désactivé

        // Fonction qui permet, selon le yield, d'avoir une certaine pause entre l'activation et la désactivation des textes
        // Débute la fonction DisparaitreMessage comme une coroutine qui peut arrêter son exécution
        StartCoroutine(DisparaitreMessage());
    }
示例#12
0
 void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0) && Check == true)
     {
         Page1.gameObject.GetComponent <SpriteRenderer>().sprite = Page1S;
         Page2.gameObject.GetComponent <SpriteRenderer>().sprite = Page2S;
         Vector3 P1pos = P1.transform.position;
         Vector3 P2pos = P2.transform.position;
         Check = false;
         P1.transform.position = P2pos;
         P2.transform.position = P1pos;
         Text1.SetActive(true);
         Text2.SetActive(true);
     }
 }
示例#13
0
 public void Common_methods()
 {
     Global.Driver.wait(5);
     //Click on the Owners tab
     ServiceSupplier.Click();
     //click MyQuote
     MyQuote.Click();
     //Edit
     EditButton.Click();
     //Text
     Text.Clear();
     //enter in text
     Text2.SendKeys(ExcelLib.ReadData(3, "TestData"));
     SaveButton.Click();
     ServiceSupplier2.Click();
     MyQuote2.Click();
 }
示例#14
0
 public override void Show(ZuHeTool tool, string searchInput)
 {
     if (!string.IsNullOrEmpty(searchInput))
     {
         string input = searchInput.ToLower();
         if (Text1.ToLower().Contains(input) || Text2.Contains(input))
         {
             MyCreate.Box(() =>
             {
                 tool.TextText_OY(Text1, Text2);
             });
         }
     }
     else
     {
         tool.TextText_BL(Text1, Text2);
     }
 }
示例#15
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     #region Initializing Controls, Bindings & events
     Text1 = (TextBlock)GetTemplateChild("Text1");
     Binding DisplayText1Binding = new Binding("DisplayText1")
     {
         Source = this,
         Mode   = BindingMode.TwoWay
     };
     Text1.SetBinding(TextBlock.TextProperty, DisplayText1Binding);
     Text1.MouseDown += CampClicked;
     Text2            = (TextBlock)GetTemplateChild("Text2");
     Binding DisplayText2Binding = new Binding("DisplayText2")
     {
         Source = this,
         Mode   = BindingMode.TwoWay
     };
     Text2.SetBinding(TextBlock.TextProperty, DisplayText2Binding);
     #endregion
 }