~jspreddy/xibo/xibo-jumplist-styling

« back to all changes in this revision

Viewing changes to client/dotNET/MainForm.cs

  • Committer: Alex Harrington
  • Date: 2012-12-02 18:49:11 UTC
  • mfrom: (250.8.3 client-141-fix)
  • Revision ID: alex@longhill.org.uk-20121202184911-ddy5rcfwdxjht81e
Merged client-141

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
                Directory.CreateDirectory(Properties.Settings.Default.LibraryPath + @"\backgrounds");
160
160
            }
161
161
 
162
 
            // Hide the cursor
163
 
            Cursor.Position = new Point(_clientSize.Width, _clientSize.Height);
164
 
            
 
162
            // Is the mouse enabled?
165
163
            if (!Properties.Settings.Default.EnableMouse)
 
164
                // Hide the cursor
166
165
                Cursor.Hide();
167
166
 
 
167
            // Move the cursor to the starting place
 
168
            SetCursorStartPosition();
 
169
 
 
170
            // Show the splash screen
168
171
            ShowSplashScreen();
169
172
 
170
173
            // Change the default Proxy class
504
507
                options.top = (int)(double.Parse(nodeAttibutes["top"].Value) * _scaleFactor);
505
508
                options.scaleFactor = _scaleFactor;
506
509
 
 
510
                // Store the original width and original height for scaling
 
511
                options.originalWidth = Convert.ToInt32(nodeAttibutes["width"].Value);
 
512
                options.originalHeight = Convert.ToInt32(nodeAttibutes["height"].Value);
 
513
 
507
514
                // Set the backgrounds (used for Web content offsets)
508
515
                options.backgroundLeft = options.left * -1;
509
516
                options.backgroundTop = options.top * -1;
666
673
        }
667
674
 
668
675
        /// <summary>
 
676
        /// Set the Cursor start position
 
677
        /// </summary>
 
678
        private void SetCursorStartPosition()
 
679
        {
 
680
            Point position;
 
681
 
 
682
            switch (Settings.Default.CursorStartPosition)
 
683
            {
 
684
                case "Top Left":
 
685
                    position = new Point(0, 0);
 
686
                    break;
 
687
 
 
688
                case "Top Right":
 
689
                    position = new Point(_clientSize.Width, 0);
 
690
                    break;
 
691
 
 
692
                case "Bottom Left":
 
693
                    position = new Point(0, _clientSize.Height);
 
694
                    break;
 
695
 
 
696
                case "Bottom Right":
 
697
                default:
 
698
                    position = new Point(_clientSize.Width, _clientSize.Height);
 
699
                    break;
 
700
            }
 
701
 
 
702
            Cursor.Position = position;
 
703
        }
 
704
 
 
705
        /// <summary>
669
706
        /// Force a flush of the stats log
670
707
        /// </summary>
671
708
        public void FlushStats()