private void _matrixWindow_FormClosed(object sender, FormClosedEventArgs e) { _matrixWindow.Dispose(); _matrixWindow = null; Settings.Default.ShowMatrixWindow = showMatrixWindowToolStripMenuItem.Checked = false; Settings.Default.Save(); }
private void ShowMatrixWindow() { if (_matrixWindow != null) _matrixWindow.Show(); else { _matrixWindow = new MatrixWindow(); _matrixWindow.TopMost = true; _matrixWindow.Matrix = viewport1.View; _matrixWindow.Show(); _matrixWindow.FormClosed += _matrixWindow_FormClosed; _matrixWindow.MatrixChanged += _matrixWindow_MatrixChanged; } }