main
1using System;
2using System.Windows.Forms;
3using momoney.presentation.views;
4using MoMoney.Presentation.Winforms.Resources;
5
6namespace MoMoney.Presentation.Winforms.Views
7{
8 public partial class SplashScreenView : ApplicationWindow, ISplashScreenView
9 {
10 public SplashScreenView()
11 {
12 InitializeComponent();
13 }
14
15 protected override void OnLoad(EventArgs e)
16 {
17 Opacity = 0;
18 BackgroundImage = ApplicationImages.Splash;
19 ClientSize = BackgroundImage.Size;
20 FormBorderStyle = FormBorderStyle.None;
21 StartPosition = FormStartPosition.CenterScreen;
22 top_most();
23 }
24
25 public void increment_the_opacity()
26 {
27 Opacity += 0.2;
28 }
29
30 public double current_opacity()
31 {
32 return Opacity;
33 }
34
35 public void decrement_the_opacity()
36 {
37 Opacity -= .1;
38 }
39
40 public void close_the_screen()
41 {
42 Close();
43 Dispose();
44 }
45
46 public void display()
47 {
48 Show();
49 }
50 }
51}