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