Exemple #1
0
 /// <summary>
 /// 创建唯一实例
 /// </summary>
 public static FrmOutPut CreateInstance(int idNo, int chanNum, COutPut_List Output)
 {
     lock (syncRoot)
     {
         if (dlg == null || dlg.IsDisposed)
         {
             dlg = new FrmOutPut(idNo, chanNum, Output);
         }
     }
     return(dlg);
 }
Exemple #2
0
        private void btnVEdit_Click(object sender, EventArgs e)
        {
            if (OutputView.SelectedCells.Count == 0)
            {
                return;
            }

            if (OutputView.SelectedCells[0].RowIndex < 0)
            {
                return;
            }

            int row = OutputView.SelectedCells[0].RowIndex;

            _outPut[row].Describe = OutputView.Rows[row].Cells[1].Value.ToString();

            FrmOutPut.CreateInstance(row, _outPutChan, _outPut[row]).Show();
        }