Ejemplo n.º 1
0
        private void btnSetting_Click(object sender, EventArgs e)
        {
            _QuoteServiceInfo       cQuoteInfo            = dataGrid.SelectedDataRows[0] as _QuoteServiceInfo;
            frmQuoteServiceSettings cQuoteServiceSettings = new frmQuoteServiceSettings(QuoteManager.Manager.GetQuoteService(cQuoteInfo.GetInformation()));

            DialogResult cResult = cQuoteServiceSettings.ShowDialog();

            if (cResult == DialogResult.OK && cQuoteInfo.Enabled)
            {
                QuoteManager.Manager.StopQuoteService(cQuoteInfo.GetInformation());

                btnEnabled.Visible       = !cQuoteInfo.Enabled;
                btnDisabled.Visible      = cQuoteInfo.Enabled;
                btnReLogin.Enabled       = cQuoteInfo.Enabled;
                btnRefreshSymbol.Enabled = cQuoteInfo.Enabled;

                __bSetupChanged = true;

                CheckAndUpdateAccount(cQuoteInfo);
                source.Refresh();
            }
        }
Ejemplo n.º 2
0
		private void btnSetting_Click(object sender, EventArgs e) {
			QuoteServiceInformation cQuoteInfo = dataGrid.SelectedDataRows[0] as QuoteServiceInformation;
			frmQuoteServiceSettings cQuoteServiceSettings = new frmQuoteServiceSettings(QuoteManager.Manager.GetQuoteService(cQuoteInfo));
			cQuoteServiceSettings.ShowDialog();
		}