コード例 #1
0
 static public void dgvUserResult(QueryForm form)
 {
     form.dgvResult.DataSource = (from user in Control.tempUserResult select
                                  new { user.Id, user.Name }).ToList();
     if (form.dgvResult.Rows.Count != 0)
     {
         form.dgvResult[0, 0].Selected = true;
     }
     form.dgvResult.Update();
 }
コード例 #2
0
 static public void dgvCollectionResults(QueryForm form)
 {
     form.dgvResult.DataSource = (from collection in Control.tempCollectionResult select
                                  new { collection.Id, collection.Name, collection.Description, collection.CreatingDate, collection.AverageMark }).ToList();
     if (form.dgvResult.Rows.Count != 0)
     {
         form.dgvResult[0, 0].Selected = true;
     }
     form.dgvResult.Update();
 }
コード例 #3
0
 static public void dgvQueries(QueryForm form)
 {
     form.dgvQueries.DataSource = (from query in Control.tempQueries select
                                   new { query.Entity, query.Property, query.Condition, query.Value, query.Link }).ToList();
     if (form.dgvQueries.Rows.Count != 0)
     {
         form.dgvQueries[0, 0].Selected = true;
     }
     form.dgvQueries.Update();
 }
コード例 #4
0
 static public void dgvObjectResults(QueryForm form)
 {
     form.dgvResult.DataSource = (from obj in Control.tempObjectResult select
                                  new { obj.Id, obj.Name, obj.Description, obj.CreatingDate, obj.AvarageMark }).ToList();
     if (form.dgvResult.Rows.Count != 0)
     {
         form.dgvResult[0, 0].Selected = true;
     }
     form.dgvResult.Update();
 }
コード例 #5
0
        private void btnQuery_Click(object sender, EventArgs e)
        {
            QueryForm queryForm = new QueryForm();

            queryForm.ShowDialog();
        }