Exemple #1
0
        public SplashModule()
        {
            Post["/show"] = x =>
            {
                SplashController.GetInstance().Show();
                return(new Response()
                {
                    StatusCode = HttpStatusCode.OK
                });
            };

            Post["/hide"] = x =>
            {
                SplashController.GetInstance().Hide();
                return(new Response()
                {
                    StatusCode = HttpStatusCode.OK
                });
            };
        }
 public static SplashController CreateInstance(Form1 formReference)
 {
     _instance = new SplashController(formReference);
     return(_instance);
 }
Exemple #3
0
 public Form1()
 {
     InitializeComponent();
     _controller = SplashController.CreateInstance(this);
 }