예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            if (System.Windows.Forms.Screen.AllScreens.Length >= 2)
            {
                screen0 = System.Windows.Forms.Screen.AllScreens[0].Bounds;
                screen1 = System.Windows.Forms.Screen.AllScreens[1].Bounds;
                STATICS.SCREEN_WIDTH  = screen0.Width;
                STATICS.SCREEN_HEIGHT = screen0.Height;
                STATICS.SCREEN_NUM    = 2;
                System.Drawing.Rectangle screenBounds = System.Windows.Forms.Screen.AllScreens[0].Bounds;
                this.Left = screenBounds.Left;
                this.Top  = screenBounds.Top;
                InitializeCloudView();
            }
            else
            {
                STATICS.SCREEN_WIDTH  = (int)SystemParameters.PrimaryScreenWidth;
                STATICS.SCREEN_HEIGHT = (int)SystemParameters.PrimaryScreenHeight;
                STATICS.SCREEN_NUM    = 1;
                //STATICS.DEAULT_CARD_SIZE = new Size(0.08333 * STATICS.SCREEN_WIDTH, 0.11111 * STATICS.SCREEN_HEIGHT);
                //STATICS.DEAULT_CARD_SIZE_WITH_BORDER = new Size(0.08333 * STATICS.SCREEN_WIDTH + 5, 0.11111 * STATICS.SCREEN_HEIGHT + 5);
                this.Width       = STATICS.SCREEN_WIDTH;
                this.Height      = STATICS.SCREEN_HEIGHT;
                this.WindowState = System.Windows.WindowState.Maximized;
                this.Left        = 0;
            }
            boundary = new Rect(0, 0, STATICS.SCREEN_WIDTH, STATICS.SCREEN_HEIGHT);
            Stylus.SetIsPressAndHoldEnabled(this, false);
            Stylus.SetIsTapFeedbackEnabled(this, false);
            Stylus.SetIsFlicksEnabled(this, false);
            Stylus.SetIsTouchFeedbackEnabled(this, false);

            this.Loaded += Window_Loaded;
            Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata {
                DefaultValue = 28
            });
            controlWindow = new Control_Window(this);
            controlWindow.Show();

            this.Visibility = Visibility.Hidden;
            this.KeyDown   += MainWindow_KeyDown;
        }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();
            if (System.Windows.Forms.Screen.AllScreens.Length >= 2)
            {
                screen0 = System.Windows.Forms.Screen.AllScreens[0].Bounds;
                screen1= System.Windows.Forms.Screen.AllScreens[1].Bounds;
                STATICS.SCREEN_WIDTH = screen0.Width;
                STATICS.SCREEN_HEIGHT = screen0.Height;
                STATICS.SCREEN_NUM = 2;
                System.Drawing.Rectangle screenBounds = System.Windows.Forms.Screen.AllScreens[0].Bounds;
                this.Left = screenBounds.Left;
                this.Top = screenBounds.Top;
                InitializeCloudView();
            }
            else
            {
                STATICS.SCREEN_WIDTH = (int)SystemParameters.PrimaryScreenWidth;
                STATICS.SCREEN_HEIGHT = (int)SystemParameters.PrimaryScreenHeight;
                STATICS.SCREEN_NUM = 1;
                //STATICS.DEAULT_CARD_SIZE = new Size(0.08333 * STATICS.SCREEN_WIDTH, 0.11111 * STATICS.SCREEN_HEIGHT);
                //STATICS.DEAULT_CARD_SIZE_WITH_BORDER = new Size(0.08333 * STATICS.SCREEN_WIDTH + 5, 0.11111 * STATICS.SCREEN_HEIGHT + 5);
                this.Width = STATICS.SCREEN_WIDTH;
                this.Height = STATICS.SCREEN_HEIGHT;
                this.WindowState = System.Windows.WindowState.Maximized;
                this.Left = 0;
            }
            boundary = new Rect(0, 0, STATICS.SCREEN_WIDTH, STATICS.SCREEN_HEIGHT);
            Stylus.SetIsPressAndHoldEnabled(this, false);
            Stylus.SetIsTapFeedbackEnabled(this, false);
            Stylus.SetIsFlicksEnabled(this, false);
            Stylus.SetIsTouchFeedbackEnabled(this, false);

            this.Loaded += Window_Loaded;
            Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata { DefaultValue = 28 });
            controlWindow = new Control_Window(this);
            controlWindow.Show();

            this.Visibility = Visibility.Hidden;
            this.KeyDown += MainWindow_KeyDown;
        }
        public MainWindow()
        {
            InitializeComponent();

            if (System.Windows.Forms.Screen.AllScreens.Length >= 2)
            {

                STATICS.SCREEN_WIDTH = System.Windows.Forms.Screen.AllScreens[1].Bounds.Width;
                STATICS.SCREEN_HEIGHT = System.Windows.Forms.Screen.AllScreens[1].Bounds.Height;
                STATICS.DEAULT_CARD_SIZE = new Size(0.08333 * STATICS.SCREEN_WIDTH, 0.11111 * STATICS.SCREEN_HEIGHT);
                STATICS.DEAULT_CARD_SIZE_WITH_BORDER = new Size(0.08333 * STATICS.SCREEN_WIDTH + 10, 0.11111 * STATICS.SCREEN_HEIGHT + 10);
                System.Drawing.Rectangle screenBounds = System.Windows.Forms.Screen.AllScreens[1].Bounds;
                this.Left = screenBounds.Left;
                this.Top = screenBounds.Top;
            }
            else
            {
                STATICS.SCREEN_WIDTH = (int)SystemParameters.PrimaryScreenWidth;
                STATICS.SCREEN_HEIGHT = (int)SystemParameters.PrimaryScreenHeight;
                STATICS.DEAULT_CARD_SIZE = new Size(0.08333 * STATICS.SCREEN_WIDTH, 0.11111 * STATICS.SCREEN_HEIGHT);
                STATICS.DEAULT_CARD_SIZE_WITH_BORDER = new Size(0.08333 * STATICS.SCREEN_WIDTH + 10, 0.11111 * STATICS.SCREEN_HEIGHT + 10);
                this.Width = STATICS.SCREEN_WIDTH;
                this.Height = STATICS.SCREEN_HEIGHT;
                this.WindowState = System.Windows.WindowState.Normal;
                this.Left = 0;
            }
            Stylus.SetIsPressAndHoldEnabled(this, false);
            Stylus.SetIsTapFeedbackEnabled(this, false);
            Stylus.SetIsFlicksEnabled(this, false);
            Stylus.SetIsTouchFeedbackEnabled(this, false);
            Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata { DefaultValue = 28 });
            controlWindow = new Control_Window(this);
            controlWindow.Show();

            this.Loaded += Window_Loaded;
            //InitializeControlers();
        }