Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        private async void btnTradeConfirmations_Click(object sender, EventArgs e)
        {
            if (currentAccount == null)
            {
                return;
            }

            string oText = btnTradeConfirmations.Text;

            btnTradeConfirmations.Text = "Loading...";
            await currentAccount.RefreshSessionAsync();

            btnTradeConfirmations.Text = oText;

            try
            {
                ConfirmationFormWeb confirms = new ConfirmationFormWeb(currentAccount);
                confirms.Show();
            }
            catch (Exception)
            {
                DialogResult res = MessageBox.Show("You are missing a dependency required to view your trade confirmations.\nWould you like to install it now?", "Trade confirmations failed to open", MessageBoxButtons.YesNo);
                if (res == DialogResult.Yes)
                {
                    new InstallRedistribForm(true).ShowDialog();
                }
            }
        }
Esempio n. 2
0
        private async void btnTradeConfirmations_Click(object sender, EventArgs e)
        {
            if (currentAccount == null)
            {
                return;
            }

            string oText = btnTradeConfirmations.Text;

            btnTradeConfirmations.Text = "加载中...";
            await RefreshAccountSession(currentAccount);

            btnTradeConfirmations.Text = oText;

            try
            {
                ConfirmationFormWeb confirms = new ConfirmationFormWeb(currentAccount);
                confirms.Show();
            }
            catch (Exception)
            {
                DialogResult res = MessageBox.Show("查看交易确认 你缺少一个依赖.\n需要现在安装吗?", "交易确认打开失败", MessageBoxButtons.YesNo);
                if (res == DialogResult.Yes)
                {
                    new InstallRedistribForm(true).ShowDialog();
                }
            }
        }
        private async void btnTradeConfirmations_Click(object sender, EventArgs e)
        {
            if (currentAccount == null)
            {
                return;
            }

            string oText = btnTradeConfirmations.Text;

            btnTradeConfirmations.Text = "Loading...";
            await RefreshAccountSession(currentAccount);

            btnTradeConfirmations.Text = oText;

            try
            {
                ConfirmationFormWeb confirms = new ConfirmationFormWeb(currentAccount);
                confirms.Show();
            }
            catch (Exception ex)
            {
                Console.WriteLine("++++++++++++++++++++++++++++++++++++++++");
                Console.WriteLine(ex.Message);
                Console.WriteLine("++++++++++++++++++++++++++++++++++++++++");
                DialogResult res = MessageBox.Show("您缺少一个用于查看确认信息的必需项。您是否要立即安装?", "报价确认信息打开失败", MessageBoxButtons.YesNo);
                if (res == DialogResult.Yes)
                {
                    new InstallRedistribForm(true).ShowDialog();
                }
            }
        }
Esempio n. 4
0
        private void btnTradeConfirmations_Click(object sender, EventArgs e)
        {
            if (mCurrentAccount == null)
            {
                return;
            }

            // Get new cookies every time (sadly)
            mCurrentAccount.RefreshSession();

            ConfirmationFormWeb confirms = new ConfirmationFormWeb(mCurrentAccount);

            confirms.Show();
        }
        private async void btnTradeConfirmations_Click(object sender, EventArgs e)
        {
            if (currentAccount == null) return;

            string oText = btnTradeConfirmations.Text;
            btnTradeConfirmations.Text = "Loading...";
            await RefreshAccountSession(currentAccount);
            btnTradeConfirmations.Text = oText;

            try
            {
                ConfirmationFormWeb confirms = new ConfirmationFormWeb(currentAccount);
                confirms.Show();
            }
            catch (Exception)
            {
                DialogResult res = MessageBox.Show("You are missing a dependency required to view your trade confirmations.\nWould you like to install it now?", "Trade confirmations failed to open", MessageBoxButtons.YesNo);
                if (res == DialogResult.Yes)
                {
                    new InstallRedistribForm(true).ShowDialog();
                }
            }
        }