Esempio n. 1
0
        private void OnLoad(object sender, RoutedEventArgs e)
        {
            StartScreenHelpDialogHelper.ShowScreenStartHelpDialogIfFlagIsTrue(ScreenStartDialogTypes.MeshCreated);

            //scale left grid a little bit for monitors with resolution higher than 800*600
            try
            {
                var thisWindow = Window.GetWindow(this);

                var wpfScreen   = WpfScreen.GetScreenFrom(thisWindow);
                var screenWidth = wpfScreen.DeviceBounds.Width;
                var scaleValue  = 1.0;
                if (screenWidth >= 1200)
                {
                    scaleValue = 1.4;
                }
                else if (screenWidth >= 1000)
                {
                    scaleValue = 1.2;
                }
                var scaleTransform = new ScaleTransform(scaleValue, scaleValue);

                LeftGrid.LayoutTransform = scaleTransform;

                thisWindow.WindowState = WindowState.Maximized;
            }
            catch (Exception)
            { }
        }
        private void OnLoad(object sender, RoutedEventArgs e)
        {
            StartScreenHelpDialogHelper.ShowScreenStartHelpDialogIfFlagIsTrue(ScreenStartDialogTypes.BackgroundScreen);
            ComboBoxForScreenColor.SelectionChanged += ScreenSelectionChanged;
            //change things for different monitor resolutions
            try
            {
                var thisWindow = Window.GetWindow(this);

                var wpfScreen   = WpfScreen.GetScreenFrom(thisWindow);
                var screenWidth = wpfScreen.DeviceBounds.Width;
                if (screenWidth <= 1000)
                {
                    TopMessage.MessageFontSize = 12;
                }
            }
            catch (Exception)
            { }
        }
Esempio n. 3
0
        private void OnLoad(object sender, RoutedEventArgs e)
        {
            StartScreenHelpDialogHelper.ShowScreenStartHelpDialogIfFlagIsTrue(ScreenStartDialogTypes.CreateReady);

            //scale grid a little bit for monitors with resolution less than 600 height
            try
            {
                var thisWindow = Window.GetWindow(this);

                var wpfScreen    = WpfScreen.GetScreenFrom(thisWindow);
                var screenHeight = wpfScreen.DeviceBounds.Height;
                if (screenHeight <= 600)
                {
                    const double scaleValue     = .8;
                    var          scaleTransform = new ScaleTransform(scaleValue, scaleValue);
                    ParentGrid.LayoutTransform = scaleTransform;
                }

                thisWindow.WindowState = WindowState.Maximized;
            }
            catch (Exception)
            { }
        }
Esempio n. 4
0
 void AddSkinLoaded(object sender, RoutedEventArgs e)
 {
     addSkinOption.SelectedIndex = (int)_currentTextureType;
     StartScreenHelpDialogHelper.ShowScreenStartHelpDialogIfFlagIsTrue(ScreenStartDialogTypes.AddSkinDialog);
 }
 static void AutoConfigureContainerLoaded(object sender, System.Windows.RoutedEventArgs e)
 {
     StartScreenHelpDialogHelper.ShowScreenStartHelpDialogIfFlagIsTrue(ScreenStartDialogTypes.AutoConfigure);
 }
Esempio n. 6
0
 static void ClickCanvasContainerLoaded(object sender, System.Windows.RoutedEventArgs e)
 {
     StartScreenHelpDialogHelper.ShowScreenStartHelpDialogIfFlagIsTrue(ScreenStartDialogTypes.ClickInputs);
 }