Exemplo n.º 1
0
        private void InitializeWithdraw()
        {
            if (SManager == null)
            {
                return;
            }

            InfoExchange info = SManager.AssetBuy;

            if (!info.IsValid())
            {
                return;
            }

            Fundings[] fundings = Manager.Fundings.Get(Fundings.AccountType.Withdraw, info.Asset.Value);
            Fundings[] results  = UDdlWithdraw.AddItems(fundings);

            if (!results.ContainsType(SManager.FundingWithdraw.Fundings))
            {
                SManager.FundingWithdraw.Fundings = null;
            }

            if (SManager.FundingWithdraw.Fundings == null && UDdlWithdraw.Items.Count > 0)
            {
                UDdlWithdraw.SelectedIndex        = 0;
                SManager.FundingWithdraw.Fundings = results[UDdlWithdraw.SelectedIndex];
            }

            if (SManager.FundingWithdraw.Fundings != null)
            {
                UDdlWithdraw.SelectValue(SManager.FundingWithdraw.Fundings.Name);
            }
        }
Exemplo n.º 2
0
        public void UpdateAll()
        {
            if (SManager == null || SManager.FundingDeposit == null || SManager.FundingWithdraw == null)
            {
                return;
            }

            this.InitializeDeposit();
            this.InitializeWithdraw();

            UDdlDeposit.Update();
            UDdlWithdraw.Update();

            this.InitializeDepositFundinng();
            this.InitializeWithdrawFundinng();

            this.InitializeDepositAddress();
            this.InitializeWithdrawAddress();

            UTbxDeposit.Update();
            UTbxWithdraw.Update();



            SManager.FundingDeposit.UpdateAllCotrols  = false;
            SManager.FundingWithdraw.UpdateAllCotrols = false;
        }