示例#1
0
        private void uGridBom_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
        {
            if (e.Cell.Row.Cells["AutoID"].Value == null)
            {
                return;
            }
            var lid = e.Cell.Row.Cells["AutoID"].Value.ToString();

            if (string.IsNullOrEmpty(lid))
            {
                return;
            }
            var lblPrintForm = (WorkTrackBom)FormIsExist("WorkTrackBom");

            if (lblPrintForm == null)
            {
                var feturesOpen = new WorkTrackBom(lid)
                {
                    MdiParent = ParentForm
                };
                feturesOpen.Show();
                return;
            }
            lblPrintForm.Activate();
            lblPrintForm.SetPanelVlaue(lid);
        }
示例#2
0
 private void uGridBom_DoubleClickCell(object sender, Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs e)
 {
     if (e.Cell.Row.Cells["AutoID"].Value == null)
         return;
     var lid = e.Cell.Row.Cells["AutoID"].Value.ToString();
     if (string.IsNullOrEmpty(lid))
         return;
     var lblPrintForm = (WorkTrackBom)FormIsExist("WorkTrackBom");
     if (lblPrintForm == null)
     {
         var feturesOpen = new WorkTrackBom(lid) { MdiParent = ParentForm };
         feturesOpen.Show();
         return;
     }
     lblPrintForm.Activate();
     lblPrintForm.SetPanelVlaue(lid);
 }