示例#1
0
 private void _matrixWindow_FormClosed(object sender, FormClosedEventArgs e)
 {
     _matrixWindow.Dispose();
     _matrixWindow = null;
     Settings.Default.ShowMatrixWindow =
         showMatrixWindowToolStripMenuItem.Checked = false;
     Settings.Default.Save();
 }
示例#2
0
 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;
     }
 }