Exemplo n.º 1
0
        private void button8_Click(object sender, EventArgs e)
        {
            this.panel2.Focus();
            LicenseServiceClient licenseServiceClient = new LicenseServiceClient();

            foreach (DataGridViewRow row in (IEnumerable)this.lwInstruments.Rows)
            {
                try
                {
                    string s = row.Cells["InstrumentId"].Value.ToString();
                    licenseServiceClient.setInstumentState(long.Parse(s), (bool)row.Cells["Active"].Value);
                }
                catch
                {
                }
            }
            licenseServiceClient.Close();
            SettingsProvider.Settings.LocalSetting.GetInstruments();
            if (!MainWindow.processes.ContainsKey("Lmax"))
            {
                return;
            }
            MainWindow.stopProcess("Lmax");
            MainWindow.startProcess("Lmax", "");
        }
Exemplo n.º 2
0
        private void button8_Click(object sender, EventArgs e)
        {
            this.panel2.Focus();
            LicenseServiceClient licenseServiceClient = new LicenseServiceClient();

            foreach (DataGridViewRow row in (IEnumerable)this.lwInstruments.Rows)
            {
                licenseServiceClient.setInstumentState(long.Parse(row.Cells["InstrumentId"].Value.ToString()), (bool)row.Cells["Active"].Value);
            }
            licenseServiceClient.Close();
            SettingsProvider.Settings.LocalSetting.GetInstruments();
            MainWindow.stopProcess("Saxo");
            MainWindow.startProcess("Saxo", "");
        }