Пример #1
0
        private void NewClick()
        {
            var w = new WorkCentersSub(0, TypeAction.Add);

            w.ShowDialog();
            DataLoad();
        }
Пример #2
0
 private void ViewClick()
 {
     if (radGridView1.CurrentCell != null)
     {
         var w = new WorkCentersSub(radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt(), TypeAction.View);
         w.ShowDialog();
         DataLoad();
     }
 }
Пример #3
0
 private void EditClick()
 {
     if (radGridView1.CurrentCell != null)
     {
         //var w = new WorkCentersDetail(radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt(), TypeAction.Edit);
         //w.ShowDialog();
         //DataLoad();
         var w = new WorkCentersSub(radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt(), TypeAction.Edit);
         w.ShowDialog();
         DataLoad();
     }
 }
Пример #4
0
 private void btnSubWorkCenter_Click(object sender, EventArgs e)
 {
     if (radGridView1.CurrentCell != null)
     {
         var v = radGridView1.CurrentCell;
         if (v.RowInfo.Cells["dgvCodetemp"].Value.ToInt() > 0)
         {
             var workid = radGridView1.CurrentCell.RowInfo.Cells["dgvCodetemp"].Value.ToInt();
             var w      = new WorkCentersSub(workid, TypeAction.Edit);
             w.ShowDialog();
         }
     }
 }