Ejemplo n.º 1
0
        private void TuneControls()
        {
            if (_data == null)
            {
                return;
            }

            try
            {
                var buyPrice = _craft.GetBuyCost(_data);
                var count    = tbCount.Text.ToInt();
                if (buyPrice != null)
                {
                    tbSum.Text       = Utils.ToString(buyPrice.Value) + _data.MainCurrency.ShortName;
                    tbSumPerOne.Text = Utils.ToString(buyPrice.Value / count) + _data.MainCurrency.ShortName;
                }
                else
                {
                    tbSum.Text = string.Empty;
                }
            }
            catch
            {
                tbSum.Text = string.Empty;
            }
        }