示例#1
0
 public static LineDiscr getInstance()
 {
     // DoubleLock
     if (instance == null)
     {
         lock (m_lock)
         {
             if (instance == null)
             {
                 instance = new LineDiscr();
             }
         }
     }
     return(instance);
 }
示例#2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ld = LineDiscr.getInstance();
     dataGridView1.Columns[0].Width = dataGridView1.Width - 3;
 }