Exemplo n.º 1
0
        private void buttonLogIn_Click(object sender, EventArgs e)
        {
            CGuiApplicationIntermediate cgai = CGuiApplicationIntermediate.InstanceCreation();

            if (cgai.logIn(textBoxUser.Text, textBoxPassword.Text))
            {
                this.Hide();
                cgai.showHomePage();
            }
        }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            CGuiApplicationIntermediate cgai = CGuiApplicationIntermediate.InstanceCreation();

            Console.WriteLine("Version: " + Environment.Version.ToString());

            Application.Run(new FormLogIn());
            ;
        }
Exemplo n.º 3
0
        public FormAdmin()
        {
            InitializeComponent();
            cgai = CGuiApplicationIntermediate.InstanceCreation();
            Boolean fullscreen = false;

            if (fullscreen)
            {
                this.WindowState     = FormWindowState.Normal;
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                this.Bounds          = Screen.PrimaryScreen.Bounds;
            }
            else
            {
                this.WindowState     = FormWindowState.Maximized;
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            }
        }
Exemplo n.º 4
0
        public FormHome()
        {
            InitializeComponent();
            cgai = CGuiApplicationIntermediate.InstanceCreation();
            Boolean fullscreen = false;

            if (fullscreen)
            {
                this.WindowState     = FormWindowState.Normal;
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                this.Bounds          = Screen.PrimaryScreen.Bounds;
                // for determining the width of each button TBD
                displayWidth = this.Bounds.Width;
            }
            else
            {
                this.WindowState     = FormWindowState.Maximized;
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            }
        }
Exemplo n.º 5
0
 public FormAddUser()
 {
     InitializeComponent();
     cgai = CGuiApplicationIntermediate.InstanceCreation();
 }
Exemplo n.º 6
0
 public FormEditPlayersList()
 {
     InitializeComponent();
     cgai = CGuiApplicationIntermediate.InstanceCreation();
 }