Esempio n. 1
0
        private void ContinueInit()
        {
            var button = new UISystem.UIButton(base.Width - 0x21, 5, 0x19, 15, "", () =>
            {
                stopSimpleSound();
                Application.Exit();
                Process.GetCurrentProcess().Kill();
                Application.ExitThread();
            })
            {
                Anchor      = AnchorStyles.Right | AnchorStyles.Top,
                buttonImage = Image.FromFile("./data/close.png")
            };

            base.Controls.Add(button);
            var button2 = new UISystem.UIButton(base.Width - 60, 5, 0x19, 15, "",
                                                () => base.WindowState = FormWindowState.Minimized)
            {
                Anchor      = AnchorStyles.Right | AnchorStyles.Top,
                buttonImage = Image.FromFile("./data/minimize.png")
            };

            base.Controls.Add(button2);
            var box = new UISystem.UILabelBox(0, 0, base.Width, 0x19, Text, 0x11);

            box.MouseMove += MainWindow_MouseMove;
            base.Controls.Add(box);
            var box2 = new UISystem.UIPictureBox((base.Width / 2) - 0xba, 30, 0x174, 0x60);

            box2.SetImage("./data/logo.png");
            base.Controls.Add(box2);
            var button3 = new UISystem.UIButton(10, 30, 0x20, 0x20, "",
                                                () => Process.Start("https://www.facebook.com/CodeUSASoftware"))
            {
                buttonImage = Image.FromFile("./data/facebook.png")
            };

            base.Controls.Add(button3);
            var button4 = new UISystem.UIButton(0x2c, 30, 0x20, 0x20, "",
                                                () => Process.Start("http://www.youtube.com/user/CodeusaSoftware"))
            {
                buttonImage = Image.FromFile("./data/you-tube.png")
            };

            base.Controls.Add(button4);
            var button5 = new UISystem.UIButton(0x4e, 30, 0x20, 0x20, "",
                                                () => Process.Start("http://www.twitter.com/#!/CodeusaSoftware"))
            {
                buttonImage = Image.FromFile("./data/twitter.png")
            };

            base.Controls.Add(button5);
        }
Esempio n. 2
0
 private void ContinueInit()
 {
     var button = new UISystem.UIButton(base.Width - 0x21, 5, 0x19, 15, "", () =>
     {
         stopSimpleSound();
         Application.Exit();
         Process.GetCurrentProcess().Kill();
         Application.ExitThread();
     })
     {
         Anchor = AnchorStyles.Right | AnchorStyles.Top,
         buttonImage = Image.FromFile("./data/close.png")
     };
     base.Controls.Add(button);
     var button2 = new UISystem.UIButton(base.Width - 60, 5, 0x19, 15, "",
         () => base.WindowState = FormWindowState.Minimized)
     {
         Anchor = AnchorStyles.Right | AnchorStyles.Top,
         buttonImage = Image.FromFile("./data/minimize.png")
     };
     base.Controls.Add(button2);
     var box = new UISystem.UILabelBox(0, 0, base.Width, 0x19, Text, 0x11);
     box.MouseMove += MainWindow_MouseMove;
     base.Controls.Add(box);
     var box2 = new UISystem.UIPictureBox((base.Width/2) - 0xba, 30, 0x174, 0x60);
     box2.SetImage("./data/logo.png");
     base.Controls.Add(box2);
     var button3 = new UISystem.UIButton(10, 30, 0x20, 0x20, "",
         () => Process.Start("https://www.facebook.com/CodeUSASoftware"))
     {
         buttonImage = Image.FromFile("./data/facebook.png")
     };
     base.Controls.Add(button3);
     var button4 = new UISystem.UIButton(0x2c, 30, 0x20, 0x20, "",
         () => Process.Start("http://www.youtube.com/user/CodeusaSoftware"))
     {
         buttonImage = Image.FromFile("./data/you-tube.png")
     };
     base.Controls.Add(button4);
     var button5 = new UISystem.UIButton(0x4e, 30, 0x20, 0x20, "",
         () => Process.Start("http://www.twitter.com/#!/CodeusaSoftware"))
     {
         buttonImage = Image.FromFile("./data/twitter.png")
     };
     base.Controls.Add(button5);
 }