Example #1
0
        private void toolOpenAll_Click(object sender, EventArgs e)
        {
            List <TxtParamClass> chkAccounts = new List <TxtParamClass>();

            foreach (DataGridViewRow row in dataGridViewData.Rows)
            {
                if (Convert.ToBoolean(row.Cells["chkCol"].Value))
                {
                    chkAccounts.Add(list.Where(a => a.Login == int.Parse(row.Cells["LoginId"].Value.ToString())).FirstOrDefault());
                }
            }
            OpenForm form = new OpenForm(symbols, chkAccounts);

            form.ShowDialog();
        }
Example #2
0
 private void toolOpenAll_Click(object sender, EventArgs e)
 {
     List<TxtParamClass> chkAccounts = new List<TxtParamClass>();
     foreach (DataGridViewRow row in dataGridViewData.Rows)
     {
         if (Convert.ToBoolean(row.Cells["chkCol"].Value))
         {
             chkAccounts.Add(list.Where(a => a.Login == int.Parse(row.Cells["LoginId"].Value.ToString())).FirstOrDefault());
         }
     }
     OpenForm form = new OpenForm(symbols, chkAccounts);
     form.ShowDialog();
 }