public static void VisualizeInNewWindow(Matrix matrix, string title = "")
        {
            var wnd = new Window()
            {
                Title = title
            };
            var mtxCtrl = new MatrixVisualizerControl();

            mtxCtrl.VisualizeMatrix(matrix);

            wnd.Content = mtxCtrl;

            wnd.Show();
        }
        public static void VisualizeInNewWindow(Matrix matrix, string title, bool showDialog)
        {
            var wnd = new Window()
            {
                Title = title
            };
            var mtxCtrl = new MatrixVisualizerControl();

            mtxCtrl.VisualizeMatrix(matrix);

            wnd.Content = mtxCtrl;

            if (showDialog)
            {
                wnd.ShowDialog();
            }
            else
            {
                wnd.Show();
            }
        }