Esempio n. 1
0
        public Tuple <int, int> FieldDimensonSetup()
        {
            SizeInput coord = new SizeInput();

            Console.WriteLine(ConfigSettings.BoardCreationNotification);
            int x      = coord.SetFieldSize(ConfigSettings.Width);
            int y      = coord.SetFieldSize(ConfigSettings.Height);
            var result = Tuple.Create(x, y);

            return(result);
        }
Esempio n. 2
0
        private SizeInput GenerateTextBox()
        {
            SizeInput tb = new SizeInput
            {
                Width    = 40,
                Height   = 20,
                FontSize = 12,
            };

            Binding binding = new Binding("Value")
            {
                Mode = BindingMode.TwoWay,
            };

            tb.SetBinding(SizeInput.SizeProperty, binding);
            return(tb);
        }
Esempio n. 3
0
        private SizeInput GenerateTextBox()
        {
            SizeInput tb = new SizeInput
            {
                Width             = 65,
                Height            = 20,
                VerticalAlignment = VerticalAlignment.Center,
                MaxSize           = 9999,
                IsEnabled         = true
            };

            Binding binding = new Binding("Value")
            {
                Mode = BindingMode.TwoWay,
            };

            tb.SetBinding(SizeInput.SizeProperty, binding);
            return(tb);
        }