Exemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (MainTableView != null)
            {
                MainTableView.Dispose();
                MainTableView = null;
            }

            if (GroupsTableView != null)
            {
                GroupsTableView.Dispose();
                GroupsTableView = null;
            }
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (TxtMaxKeySize != null)
            {
                TxtMaxKeySize.Dispose();
                TxtMaxKeySize = null;
            }

            if (TxtMinKeySize != null)
            {
                TxtMinKeySize.Dispose();
                TxtMinKeySize = null;
            }

            if (TxtPriority != null)
            {
                TxtPriority.Dispose();
                TxtPriority = null;
            }

            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }
        }
Exemplo n.º 3
0
 private void lbWaiterName_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BtnClose.PerformClick();
     }
 }
Exemplo n.º 4
0
        void ReleaseDesignerOutlets()
        {
            if (TxtGroupName != null)
            {
                TxtGroupName.Dispose();
                TxtGroupName = null;
            }

            if (TxtDescription != null)
            {
                TxtDescription.Dispose();
                TxtDescription = null;
            }

            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }
        }
Exemplo n.º 5
0
        void ReleaseDesignerOutlets()
        {
            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (BtnLogin != null)
            {
                BtnLogin.Dispose();
                BtnLogin = null;
            }

            if (TxtPassword != null)
            {
                TxtPassword.Dispose();
                TxtPassword = null;
            }

            if (TxtUsername != null)
            {
                TxtUsername.Dispose();
                TxtUsername = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (TxtName != null)
            {
                TxtName.Dispose();
                TxtName = null;
            }

            if (TxtEndpoint != null)
            {
                TxtEndpoint.Dispose();
                TxtEndpoint = null;
            }

            if (TxtBinding != null)
            {
                TxtBinding.Dispose();
                TxtBinding = null;
            }

            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }
        }
Exemplo n.º 7
0
        void ReleaseDesignerOutlets()
        {
            if (TxtConfirmPassword != null)
            {
                TxtConfirmPassword.Dispose();
                TxtConfirmPassword = null;
            }

            if (TxtDescription != null)
            {
                TxtDescription.Dispose();
                TxtDescription = null;
            }

            if (TxtEmail != null)
            {
                TxtEmail.Dispose();
                TxtEmail = null;
            }

            if (TxtFirstName != null)
            {
                TxtFirstName.Dispose();
                TxtFirstName = null;
            }

            if (TxtLastName != null)
            {
                TxtLastName.Dispose();
                TxtLastName = null;
            }

            if (TxtPassword != null)
            {
                TxtPassword.Dispose();
                TxtPassword = null;
            }

            if (TxtUserName != null)
            {
                TxtUserName.Dispose();
                TxtUserName = null;
            }

            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }
        }
Exemplo n.º 8
0
 protected override void RegisterUIEvent()
 {
     BtnClose.OnClickAsObservable().Subscribe(_ =>
     {
         CloseSelf();
     });
     Background.OnClickAsObservable().Subscribe(_ =>
     {
         CloseSelf();
     });
 }
Exemplo n.º 9
0
        /// <summary>
        /// Resets controls after loading data.
        /// </summary>
        private void CompleteScanning()
        {
            ProgressBar.Style = ProgressBarStyle.Blocks;

            LblProgress.Text    = string.Empty;
            LblProgress.Visible = false;

            BtnClose.Text = Language.T("Close");
            Cursor        = Cursors.Default;
            _isLoadingNow = false;
            BtnClose.Focus();
        }
Exemplo n.º 10
0
        public void Show()
        {
            StartShowAnimation();
            this.Visibility = Visibility.Visible;

            // Focus the close button to ensure keyboard focus is retained inside the panel
            BtnClose.Focus(FocusState.Programmatic);

            ViewModel.PropertyChanged -= ViewModel_PropertyChanged;
            ViewModel.PropertyChanged += ViewModel_PropertyChanged;

            TitleBarHelper.SetTranisentTitleBar(TitleBackground);
        }
Exemplo n.º 11
0
        void ReleaseDesignerOutlets()
        {
            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (LblPages != null)
            {
                LblPages.Dispose();
                LblPages = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (FactoryOptionTableView != null)
            {
                FactoryOptionTableView.Dispose();
                FactoryOptionTableView = null;
            }
        }
Exemplo n.º 13
0
        protected override void RegisterUIEvent()
        {
            BtnClose.OnClickAsObservable().Subscribe(_ =>
            {
                CloseSelf();
            });

            BtnGemAdd.OnClickAsObservable().Subscribe(_ =>
            {
                UIMgr.OpenPanel <UIShopGemPanel>();
            });

            BtnGoldAdd.OnClickAsObservable().Subscribe(_ =>
            {
                UIMgr.OpenPanel <UIShopGoldPanel>();
            });
        }
Exemplo n.º 14
0
 protected override void RegisterUIEvent()
 {
     BtnClose.OnClickAsObservable().Subscribe(_ =>
     {
         CloseSelf();
     });
     Background.OnClickAsObservable().Subscribe(_ =>
     {
         CloseSelf();
     });
     BtnStart.OnClickAsObservable().Subscribe(_ =>
     {
         CloseSelf();
         UIMgr.ClosePanel <UIMapStagesPanel>();
         UIMgr.OpenPanel <UIGamePanel>();
     });
 }
Exemplo n.º 15
0
        protected override void RegisterUIEvent()
        {
            BtnClose.OnClickAsObservable().Subscribe(_ =>
            {
                CloseSelf();
            });

            BtnSignin.OnClickAsObservable().Subscribe(_ =>
            {
                UIMgr.OpenPanel <UILoginPanel>();
                CloseSelf();
            });

            BtnSignUp.OnClickAsObservable().Subscribe(_ =>
            {
                // do something
            });
        }
Exemplo n.º 16
0
        public void Redraw()
        {
            Calculate();

            Vector2 buttonPosition = new Vector2(FormSize.X - 15f, 2f) + FormPos;
            int     x = 0;

            if (BtnClose != null)
            {
                BtnClose.MoveTo(buttonPosition);
            }
            if (BtnMini != null)
            {
                x = 0;
                if (BtnClose != null)
                {
                    x += 10;
                }
                if (BtnMaxi != null)
                {
                    x += 10;
                }
                BtnMini.MoveTo(buttonPosition - new Vector2(x, 0f));
            }
            if (BtnMaxi != null)
            {
                x = 0;
                if (BtnClose != null)
                {
                    x += 10;
                }
                BtnMaxi.MoveTo(buttonPosition - new Vector2(x, 0f));
            }
            if (BtnRestore != null)
            {
                x = 0;
                if (BtnClose != null)
                {
                    x += 10;
                }
                BtnRestore.MoveTo(buttonPosition - new Vector2(x, 0f));
            }
        }
Exemplo n.º 17
0
        private void DrawButtons()
        {
            if (BtnClose != null && CanClose == true)
            {
                BtnClose.Draw(EngineCore.SpriteBatch, mAlpha);
            }
            if (FormState != EFormState.Minimized && FormState != EFormState.Minimizing && BtnMini != null && CanMini == true)
            {
                BtnMini.Draw(EngineCore.SpriteBatch, mAlpha);
            }

            if (BtnRestore != null && FormState != EFormState.Restored && FormState != EFormState.Restoring)
            {
                BtnRestore.Draw(EngineCore.SpriteBatch, mAlpha);
            }
            else if (BtnMaxi != null && CanMaxi == true)
            {
                BtnMaxi.Draw(EngineCore.SpriteBatch, mAlpha);
            }
        }
Exemplo n.º 18
0
        private void Awake()
        {
            ShowValueChaged();

            BtnClose.OnClickAsObservable().Subscribe(_ =>
            {
                // 关闭父节点的panel
                UIMgr.ClosePanel(transform.parent.name);
            });

            BtnGemAdd.OnClickAsObservable().Subscribe(_ =>
            {
                UIMgr.OpenPanel <UIShopGemPanel>();
            });

            BtnGoldAdd.OnClickAsObservable().Subscribe(_ =>
            {
                UIMgr.OpenPanel <UIShopGoldPanel>();
            });
        }
Exemplo n.º 19
0
        /// <summary>
        /// Loads data and recalculates.
        /// </summary>
        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            if (CompactMode)
            {
                return;
            }

            if (!Data.IsIntrabarData)
            {
                StartLoading();
            }
            else
            {
                Backtester.Scan();
                ShowScanningResult();
                ProgressBar.Value = 100;
                BtnClose.Focus();
            }
        }
Exemplo n.º 20
0
        protected override void RegisterUIEvent()
        {
            BtnClose.OnClickAsObservable().Subscribe(_ =>
            {
                CloseSelf();
            });

            Background.OnClickAsObservable().Subscribe(_ =>
            {
                CloseSelf();
            });

            BtnWatch.OnClickAsObservable().Subscribe(_ =>
            {
                Debug.Log("观看广告,获取奖励!");
            });

            BtnShare.OnClickAsObservable().Subscribe(_ =>
            {
                Debug.Log("分享游戏,获取奖励");
            });
        }
        void ReleaseDesignerOutlets()
        {
            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (BtnPayOrder != null)
            {
                BtnPayOrder.Dispose();
                BtnPayOrder = null;
            }

            if (LblOrderSummary != null)
            {
                LblOrderSummary.Dispose();
                LblOrderSummary = null;
            }

            if (LblUssdNumber != null)
            {
                LblUssdNumber.Dispose();
                LblUssdNumber = null;
            }

            if (TxtOrderNumber != null)
            {
                TxtOrderNumber.Dispose();
                TxtOrderNumber = null;
            }

            if (TxtOrderTotal != null)
            {
                TxtOrderTotal.Dispose();
                TxtOrderTotal = null;
            }
        }
Exemplo n.º 22
0
        private void DrawButtons()
        {
            // f**k, switch Maximize & Restore..
            // Restore => Minimize to normal
            // Maximize => Minimize/normal to Max

            if (BtnClose != null && CanClose == true)
            {
                BtnClose.Draw(EngineCore.SpriteBatch, mAlpha);
            }
            if (FormState != EFormState.Minimized && FormState != EFormState.Minimizing && BtnMini != null && CanMini == true)
            {
                BtnMini.Draw(EngineCore.SpriteBatch, mAlpha);
            }

            if (BtnRestore != null && FormState != EFormState.Restored && FormState != EFormState.Restoring)
            {
                BtnRestore.Draw(EngineCore.SpriteBatch, mAlpha);
            }
            else if (FormState != EFormState.Maximized && FormState != EFormState.Maximizing && BtnMaxi != null && CanMaxi == true)
            {
                BtnMaxi.Draw(EngineCore.SpriteBatch, mAlpha);
            }
        }
Exemplo n.º 23
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAddAssertServices != null)
            {
                BtnAddAssertServices.Dispose();
                BtnAddAssertServices = null;
            }

            if (BtnAddAttributeServices != null)
            {
                BtnAddAttributeServices.Dispose();
                BtnAddAttributeServices = null;
            }

            if (BtnAddSignatureAlgorithm != null)
            {
                BtnAddSignatureAlgorithm.Dispose();
                BtnAddSignatureAlgorithm = null;
            }

            if (BtnAddSlo != null)
            {
                BtnAddSlo.Dispose();
                BtnAddSlo = null;
            }

            if (AssertionTableView != null)
            {
                AssertionTableView.Dispose();
                AssertionTableView = null;
            }

            if (AttributeTableView != null)
            {
                AttributeTableView.Dispose();
                AttributeTableView = null;
            }

            if (BtnBrowseCertificate != null)
            {
                BtnBrowseCertificate.Dispose();
                BtnBrowseCertificate = null;
            }

            if (SloTableView != null)
            {
                SloTableView.Dispose();
                SloTableView = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (BtnRemoveAssertServices != null)
            {
                BtnRemoveAssertServices.Dispose();
                BtnRemoveAssertServices = null;
            }

            if (BtnRemoveAttributeServices != null)
            {
                BtnRemoveAttributeServices.Dispose();
                BtnRemoveAttributeServices = null;
            }

            if (BtnRemoveSignatureAlgorithm != null)
            {
                BtnRemoveSignatureAlgorithm.Dispose();
                BtnRemoveSignatureAlgorithm = null;
            }

            if (BtnRemoveSlo != null)
            {
                BtnRemoveSlo.Dispose();
                BtnRemoveSlo = null;
            }

            if (BtnSave != null)
            {
                BtnSave.Dispose();
                BtnSave = null;
            }

            if (CbSignAuthRequest != null)
            {
                CbSignAuthRequest.Dispose();
                CbSignAuthRequest = null;
            }

            if (SignAlgoTableView != null)
            {
                SignAlgoTableView.Dispose();
                SignAlgoTableView = null;
            }

            if (TxtCertificate != null)
            {
                TxtCertificate.Dispose();
                TxtCertificate = null;
            }

            if (TxtName != null)
            {
                TxtName.Dispose();
                TxtName = null;
            }

            if (TxtUrl != null)
            {
                TxtUrl.Dispose();
                TxtUrl = null;
            }
        }
Exemplo n.º 24
0
 public void closePopUp()
 {
     CommingSoon.SetActive(false);
     BtnClose.SetActive(false);
 }
Exemplo n.º 25
0
 public void ShowCommingSoon()
 {
     CommingSoon.SetActive(true);
     BtnClose.SetActive(true);
     StartCoroutine(RemoveAfterSeconds(1, CommingSoon));
 }
Exemplo n.º 26
0
        public virtual void Update(GameTime gameTime)
        {
            mMouseState = Mouse.GetState();

            mMousePos.X = mMouseState.X;
            mMousePos.Y = mMouseState.Y;

            if (Visible && (Form.TopForm == this || Form.TopForm == null || Form.TopForm.CanLostFocus == true))
            {
                if (!Form.InUse)
                {
                    CheckFocus();
                }

                if (BtnClose != null)
                {
                    BtnClose.Update(gameTime);
                }
                if (BtnMini != null)
                {
                    BtnMini.Update(gameTime);
                }
                if (BtnMaxi != null)
                {
                    BtnMaxi.Update(gameTime);
                }
                if (BtnRestore != null)
                {
                    BtnRestore.Update(gameTime);
                }

                if (Controls.Count > 0)
                {
                    Controls.Update(gameTime, FormPos, FormSize);
                }

                if (CanDrag)
                {
                    if (mMouseState.LeftButton == Microsoft.Xna.Framework.Input.ButtonState.Pressed)
                    {
                        if (!mDragging && !Form.InUse)
                        {
                            CheckDrag();
                        }
                        else if (mDragging)
                        {
                            if (mFormAlpha > 0.5f)
                            {
                                mFormAlpha -= 0.02f;
                            }
                            Drag();
                        }
                    }
                    else if (mDragging)
                    {
                        StopDrag();
                        mFormAlpha = 1f;
                    }
                }

                if (mCanResize)
                {
                    CheckResize();
                }

                if (Controls.Count > 0)
                {
                    Controls.Update(gameTime, FormPos, FormSize);
                }

                if (FormState == EFormState.Maximizing)
                {
                    Maximize();
                }
                else if (FormState == EFormState.Minimizing)
                {
                    Minimize();
                }
                else if (FormState == EFormState.Restoring)
                {
                    Restore();
                }

                if (Form.TopForm == this)
                {
                    CheckKeyboardState();
                }

                UpdateVisibility();
            }
        }
Exemplo n.º 27
0
        void ReleaseDesignerOutlets()
        {
            if (CbAuthTokenMethod != null)
            {
                CbAuthTokenMethod.Dispose();
                CbAuthTokenMethod = null;
            }

            if (BtnAddPostLogoutRedirectUri != null)
            {
                BtnAddPostLogoutRedirectUri.Dispose();
                BtnAddPostLogoutRedirectUri = null;
            }

            if (BtnAddRedirectUri != null)
            {
                BtnAddRedirectUri.Dispose();
                BtnAddRedirectUri = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (BtnRemovePostLogoutRedirectUri != null)
            {
                BtnRemovePostLogoutRedirectUri.Dispose();
                BtnRemovePostLogoutRedirectUri = null;
            }

            if (BtnRemoveRedirectUri != null)
            {
                BtnRemoveRedirectUri.Dispose();
                BtnRemoveRedirectUri = null;
            }

            if (BtnSave != null)
            {
                BtnSave.Dispose();
                BtnSave = null;
            }

            if (BtnSelectCertificate != null)
            {
                BtnSelectCertificate.Dispose();
                BtnSelectCertificate = null;
            }

            if (PostLogoutUtiTableView != null)
            {
                PostLogoutUtiTableView.Dispose();
                PostLogoutUtiTableView = null;
            }

            if (RedirectUriTableView != null)
            {
                RedirectUriTableView.Dispose();
                RedirectUriTableView = null;
            }

            if (TxtCertificateDN != null)
            {
                TxtCertificateDN.Dispose();
                TxtCertificateDN = null;
            }

            if (TxtLogoutUri != null)
            {
                TxtLogoutUri.Dispose();
                TxtLogoutUri = null;
            }

            if (TxtPostLogoutRedirectUri != null)
            {
                TxtPostLogoutRedirectUri.Dispose();
                TxtPostLogoutRedirectUri = null;
            }

            if (TxtRedirectUri != null)
            {
                TxtRedirectUri.Dispose();
                TxtRedirectUri = null;
            }
        }
Exemplo n.º 28
0
        void ReleaseDesignerOutlets()
        {
            if (BtnBufferSizeChange != null)
            {
                BtnBufferSizeChange.Dispose();
                BtnBufferSizeChange = null;
            }

            if (BtnClear != null)
            {
                BtnClear.Dispose();
                BtnClear = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (BtnFilter != null)
            {
                BtnFilter.Dispose();
                BtnFilter = null;
            }

            if (BtnOff != null)
            {
                BtnOff.Dispose();
                BtnOff = null;
            }

            if (BtnRefresh != null)
            {
                BtnRefresh.Dispose();
                BtnRefresh = null;
            }

            if (CboColumns != null)
            {
                CboColumns.Dispose();
                CboColumns = null;
            }

            if (CbOperator != null)
            {
                CbOperator.Dispose();
                CbOperator = null;
            }

            if (ChkAutoRefresh != null)
            {
                ChkAutoRefresh.Dispose();
                ChkAutoRefresh = null;
            }

            if (Status != null)
            {
                Status.Dispose();
                Status = null;
            }

            if (SuperLogsTableView != null)
            {
                SuperLogsTableView.Dispose();
                SuperLogsTableView = null;
            }

            if (TxtBufferSize != null)
            {
                TxtBufferSize.Dispose();
                TxtBufferSize = null;
            }

            if (TxtFilterValue != null)
            {
                TxtFilterValue.Dispose();
                TxtFilterValue = null;
            }

            if (TxtRefreshInterval != null)
            {
                TxtRefreshInterval.Dispose();
                TxtRefreshInterval = null;
            }
        }
Exemplo n.º 29
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (DomainComboBox != null)
            {
                DomainComboBox.Dispose();
                DomainComboBox = null;
            }

            if (GroupsTableView != null)
            {
                GroupsTableView.Dispose();
                GroupsTableView = null;
            }

            if (MainTableView != null)
            {
                MainTableView.Dispose();
                MainTableView = null;
            }

            if (MemberTypeComboBox != null)
            {
                MemberTypeComboBox.Dispose();
                MemberTypeComboBox = null;
            }

            if (NameTextString != null)
            {
                NameTextString.Dispose();
                NameTextString = null;
            }

            if (SearchButton != null)
            {
                SearchButton.Dispose();
                SearchButton = null;
            }

            if (WarningLabel != null)
            {
                WarningLabel.Dispose();
                WarningLabel = null;
            }

            if (MemberTypeLabel != null)
            {
                MemberTypeLabel.Dispose();
                MemberTypeLabel = null;
            }

            if (DomainLabel != null)
            {
                DomainLabel.Dispose();
                DomainLabel = null;
            }
        }
Exemplo n.º 30
0
 public Waiter()
 {
     InitializeComponent();
     BtnClose.Focus();
 }