public void OnEmailEndEditing(BaseBeloteControl Sender, string SpriteName)
 {
     if (EmailRemindEdit.Text != "")
         SendPasswordButton.Enabled = true;
     else
         SendPasswordButton.Enabled = false;
 }
 public void OnClosePasswordRemindForm(BaseBeloteControl Sender, string SpriteName)
 {
     this.ParentScene.ChangeActiveForm (this);
     PasswordEdit.TextField.Enabled = true;
     EmailEdit.TextField.Enabled = true;
     PasswordRemindForm = null;
 }
 public void OnEnterButtonClick(BaseBeloteControl Sender, string SpriteName)
 {
     EnterLabel.Text = "Enter";
     EmailEdit.Text = "";
     PasswordEdit.Text = "";
     Close ();
 }
示例#4
0
 public void onAutorizationFormClose(BaseBeloteControl Sender, string SpriteName)
 {
     ChangeActiveForm (null);
     mainMenuForm = new MainMenuForm (this.Game, this, onMainMenuClose, null);
     mainMenuForm.Show (1344, 750, 0, 0);
     ChangeActiveForm (mainMenuForm);
     mainMenuForm.TestDaylyBonus ();
 }
 public void OnEmailEndEditing(BaseBeloteControl Sender, string SpriteName)
 {
     if (EmailEdit.Text != "")
         EnterButton.Enabled = true;
     else
         EnterButton.Enabled = false;
     EnterLabel.Text = "Email Edited";
 }
 public void OnRemindPasswordButtonClick(BaseBeloteControl Sender, string SpriteName)
 {
     EnterLabel.Text = "Remind";
     EmailEdit.Text = "";
     PasswordEdit.Text = "";
     PasswordRemindForm = new PasswordRemindForm (this.Game, this.ParentScene, OnClosePasswordRemindForm, this);
     PasswordRemindForm.Show ();
     this.ParentScene.ChangeActiveForm (PasswordRemindForm);
     PasswordEdit.TextField.Enabled = false;
     EmailEdit.TextField.Enabled = false;
 }
示例#7
0
 public void OnCardChoose(BaseBeloteControl Sender, string SpriteName)
 {
     for (var i = 0; i < 8; i++) {
         if (Sender != BonusCards[i])
             BonusCards [i].Sprite.RunAction (SKAction.Sequence(SKAction.MoveTo (new CGPoint (Sender.X, Sender.Y), 0.3), SKAction.RemoveFromParent()));
     }
     ((BeloteCard)Sender).IsHide = false;
     int Count = ((int)((BeloteCard)Sender).Type) * 10;
     Sender.Sprite.RunAction (SKAction.MoveTo (new CGPoint (95, (this.Height / 2) - 76), 0.5), new Action (() => {
         PrizeLabel = new BeloteLabel("PrizeLabel", 250, (this.Height / 2) - 20, String.Format("Поздравляем! Вы получили {0} бесплатных фишек!", Count), UIColor.White, 30, "Roboto");
         PrizeLabel.HorizontalAlignment = SKLabelHorizontalAlignmentMode.Left;
         AddChildControl(PrizeLabel);
     }));
 }
示例#8
0
        public void OnLeftClick(BaseBeloteControl Sender, string SpriteName)
        {
            SKAction _1to0 = SKAction.Sequence (SKAction.MoveTo (new CGPoint (this.Width / 2 - 175 - 200, this.Height / 2 - 139), 0.2), SKAction.ResizeTo (new CGSize (263, 277), 0.2));
            SKAction _0to2 = SKAction.MoveTo (new CGPoint(this.Width / 2 + 175 - 63, this.Height / 2 - 139), 0.2);
            SKAction _2to1 = SKAction.Sequence (SKAction.MoveTo (new CGPoint (this.Width / 2 - 175, this.Height / 2 - 185), 0.2), SKAction.ResizeTo (new CGSize (350, 369), 0.2));

            MenuButtons [1].OnTouchStart = null;

            BeloteButton [] tmp = new BeloteButton[3];
            tmp [0] = MenuButtons [1];
            tmp [1] = MenuButtons [2];
            tmp [2] = MenuButtons [0];
            MenuButtons = tmp;

            MenuButtons [2].Sprite.RunAction (_0to2);
            MenuButtons [0].Sprite.RunAction (_1to0, new Action (() => MenuButtons [0].Sprite.ZPosition -= 1));
            MenuButtons [1].Sprite.RunAction (_2to1, new Action (() => MenuButtons [1].Sprite.ZPosition += 1));

            MenuButtons [1].OnTouchStart = OnMenuButtonClick;

            UpdateMenuButtonLabel ();
        }
示例#9
0
 public void onMainMenuClose(BaseBeloteControl Sender, string SpriteName)
 {
     authForm = new AuthorizationForm (this.Game, this, onAutorizationFormClose, null);
     authForm.Show (1344, 750, 0, 0);
     ChangeActiveForm (authForm);
 }
示例#10
0
 public void OnExitClick(BaseBeloteControl Sender, string SpriteName)
 {
     Close ();
 }
 private void OnVIPCheck(BaseBeloteControl Sender, string SpriteName)
 {
     if (Sender.Name == VIPPossibleCheck.Name) {
         VIPInpossibleCheck.Checked = false;
         VIPNoMatterCheck.Checked = false;
     }
     if (Sender.Name == VIPInpossibleCheck.Name) {
         VIPPossibleCheck.Checked = false;
         VIPNoMatterCheck.Checked = false;
     }
     if (Sender.Name == VIPNoMatterCheck.Name) {
         VIPPossibleCheck.Checked = false;
         VIPInpossibleCheck.Checked = false;
     }
 }
 private void OnAICheck(BaseBeloteControl Sender, string SpriteName)
 {
     if (Sender.Name == AIPossibleCheck.Name) {
         AIInpossibleCheck.Checked = false;
         AINoMatterCheck.Checked = false;
     }
     if (Sender.Name == AIInpossibleCheck.Name) {
         AIPossibleCheck.Checked = false;
         AINoMatterCheck.Checked = false;
     }
     if (Sender.Name == AINoMatterCheck.Name) {
         AIPossibleCheck.Checked = false;
         AIInpossibleCheck.Checked = false;
     }
 }
 private void OnBetToChanged(BaseBeloteControl Sender, string SpriteName)
 {
     BetFromUpDown.Max = BetToUpDown.Current;
 }
 private void OnConfirmClick(BaseBeloteControl Sender, string SpriteName)
 {
     Close ();
 }
 // Вызывается при заканчивании нажатия на кнопку закрытия
 public virtual void OnClosed(BaseBeloteControl Sender, string SpriteName)
 {
     SKAction closingAction = SKAction.MoveTo (new CGPoint (X, - Y * 2), 0.3);
     this.BackgroundSprite.RunAction(closingAction, new Action(() => Close()));
 }
 public void OnSendPasswordButtonClick(BaseBeloteControl Sender, string SpriteName)
 {
     Close ();
 }
示例#17
0
 // Удаление контрола с формы по ссылке
 public void RemoveChildControl(BaseBeloteControl Control)
 {
     if (Control != null)
     {
         Controls.Remove(Control);
         Control.Destroy ();
     }
 }
 // Вызывается при старте нажатия на кнопку закрытия
 public virtual void OnClosing(BaseBeloteControl Sender, string SpriteName)
 {
 }
示例#19
0
 public void OnStoreClick(BaseBeloteControl Sender, string SpriteName)
 {
 }
示例#20
0
 public void OnDaylyBonusFormClose(BaseBeloteControl Sender, string SpriteName)
 {
     ParentScene.ChangeActiveForm (this);
 }
示例#21
0
 public void OnCreationTableFormClose(BaseBeloteControl Sender, string SpriteName)
 {
     ParentScene.ChangeActiveForm (this);
 }
示例#22
0
 public void OnPasswordEndEditing(BaseBeloteControl Sender, string SpriteName)
 {
     EnterLabel.Text = "PasswordEdited";
 }
示例#23
0
        public void OnMenuButtonClick(BaseBeloteControl Sender, string SpriteName)
        {
            if (MenuButtons [1].Name == "TrainingButton") {

            }
            if (MenuButtons [1].Name == "NewTableButton") {
                CreationTableForm = new CreationTableForm (this.Game, this.ParentScene, OnCreationTableFormClose, this);
                CreationTableForm.Show (Width / 2, Height / 2, Width / 4, Height / 4);
                ParentScene.ChangeActiveForm (CreationTableForm);
            }
            if (MenuButtons [1].Name == "TablesListButton") {
                TablesSelectOptionsForm = new TablesSelectOptionsForm (this.Game, this.ParentScene, OnSelectionTablesOptionsFormClose, this);
                TablesSelectOptionsForm.Show (Width - (Width / 6), Height - (Height / 4), Width / 12, Height / 8);
                ParentScene.ChangeActiveForm (TablesSelectOptionsForm);
            }
        }
示例#24
0
 public void OnVKButtonClick(BaseBeloteControl Sender, string SpriteName)
 {
     EnterLabel.Text = "VK";
 }
示例#25
0
 // Добавление контрола на форму
 public void AddChildControl(BaseBeloteControl Child)
 {
     Controls.Add (Child);
     Child.Parent = this;
     DrawSprite (Child.Sprite);
     Child.ShowView (ParentScene);
 }