Ejemplo n.º 1
0
 private void monitoringDoubleClick(ModbusTcp.MachineInformation information)
 {
     if (Opener != null)
     {
         Opener.OpenNewForm(new frm_worker_home(information));
     }
 }
Ejemplo n.º 2
0
        private void gridView1_RowClick(object sender, RowClickEventArgs e)
        {
            long currentClickTime = DateTime.Now.Ticks / 10000;

            if (currentClickTime - latestRowClickTime < 300 && e.RowHandle == lastestRowHandle)
            {
                string machineCode = gridView1.GetDataRow(e.RowHandle)["MACHINE_CODE"].ToString();
                MachineInformation[] informations = MachineInformations.AsEnumerable().Where(x => x.MachineCode == machineCode).ToArray();

                MachineInformation information = informations[0];
                frm_worker_home    home        = new frm_worker_home(information);

                if (Opener != null)
                {
                    Opener.OpenNewForm(home);
                }
            }

            latestRowClickTime = currentClickTime;
            lastestRowHandle   = e.RowHandle;
        }