コード例 #1
0
 private void setFullScreen()
 {
     mainWindow.WindowState = WindowState.Maximized;
     btnBall.Width          = 120;
     btnBall.Height         = 120;
     btnCro.Width           = 95;
     btnCro.Height          = 85;
     btnEng.Width           = 95;
     btnEng.Height          = 85;
     btnEng.Margin          = new Thickness(0, 10, 180, 0);
     size = "fullscreen";
     try
     {
         AppSave.ScreenSave(size);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
 private void setMedium()
 {
     mainWindow.WindowState = WindowState.Normal;
     mainWindow.Width       = 1440;
     mainWindow.Height      = 900;
     btnBall.Width          = 83;
     btnBall.Height         = 83;
     btnCro.Width           = 70;
     btnCro.Height          = 62;
     btnEng.Width           = 70;
     btnEng.Height          = 62;
     btnEng.Margin          = new Thickness(0, 10, 115, 0);
     size = "medium";
     CenterWindowOnScreen();
     try
     {
         AppSave.ScreenSave(size);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #3
0
 private void setMinimum()
 {
     mainWindow.WindowState = WindowState.Normal;
     mainWindow.Width       = 1024;
     mainWindow.Height      = 768;
     btnBall.Width          = 65;
     btnBall.Height         = 65;
     btnCro.Width           = 40;
     btnCro.Height          = 36;
     btnEng.Width           = 40;
     btnEng.Height          = 35;
     btnEng.Margin          = new Thickness(0, 10, 70, 0);
     size = "minimum";
     CenterWindowOnScreen();
     try
     {
         AppSave.ScreenSave(size);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }