Example #1
0
        private void uGridRawMaterial_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 = (WorkRmLabelPrint)FormIsExist("WorkRmLabelPrint");

            if (lblPrintForm == null)
            {
                var feturesOpen = new WorkRmLabelPrint(lid)
                {
                    MdiParent = ParentForm
                };
                feturesOpen.Show();
                return;
            }
            lblPrintForm.Activate();
            lblPrintForm.SetPanelVlaue(lid);
        }
Example #2
0
 private void uGridRawMaterial_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 = (WorkRmLabelPrint)FormIsExist("WorkRmLabelPrint");
     if (lblPrintForm == null)
     {
         var feturesOpen = new WorkRmLabelPrint(lid) { MdiParent = ParentForm };
         feturesOpen.Show();
         return;
     }
     lblPrintForm.Activate();
     lblPrintForm.SetPanelVlaue(lid);
 }