Exemple #1
0
        public static Tuple <int, int> ShowModal()
        {
            var w = new WindowUniverseSizeGetter();

            w.ShowDialog();
            return(w.size);
        }
Exemple #2
0
        private void buttonCreatUniverse_Click(object sender, RoutedEventArgs e)
        {
            Tuple <int, int> unSize = WindowUniverseSizeGetter.ShowModal();

            if (unSize != null)
            {
                WindowUniverseOutput.ShowModal(
                    new Universe(unSize.Item1, unSize.Item2),
                    new Size(defPixelsWidth, defPixelsHeight)
                    );
            }
        }