コード例 #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();
            }
        }
コード例 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            CGuiApplicationIntermediate cgai = CGuiApplicationIntermediate.InstanceCreation();

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

            Application.Run(new FormLogIn());
            ;
        }
コード例 #3
0
 public static CGuiApplicationIntermediate InstanceCreation()
 {
     if (instance == null)
     {
         instance = new CGuiApplicationIntermediate();
         m_fHome = new FormHome();
         m_fAdmin = new FormAdmin();
         m_fAddUser = new FormAddUser();
         m_fAddTeam = new FormAddTeam();
         m_fEditPlayerList = new FormEditPlayersList();
         m_fPlayerDetailes = new FormPlayer();
         m_teams = new CTeamPool();
         m_teams.Teams = loadTeamsDb();
     }
     return instance;
 }
コード例 #4
0
 public static CGuiApplicationIntermediate InstanceCreation()
 {
     if (instance == null)
     {
         instance          = new CGuiApplicationIntermediate();
         m_fHome           = new FormHome();
         m_fAdmin          = new FormAdmin();
         m_fAddUser        = new FormAddUser();
         m_fAddTeam        = new FormAddTeam();
         m_fEditPlayerList = new FormEditPlayersList();
         m_fPlayerDetailes = new FormPlayer();
         m_teams           = new CTeamPool();
         m_teams.Teams     = loadTeamsDb();
     }
     return(instance);
 }
コード例 #5
0
ファイル: FormAdmin.cs プロジェクト: mano55/fcm
        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;
            }
        }
コード例 #6
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;
            }
        }
コード例 #7
0
ファイル: FormHome.cs プロジェクト: mano55/fcm
        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;
            }
        }
コード例 #8
0
ファイル: FormAddUser.cs プロジェクト: mano55/fcm
 public FormAddUser()
 {
     InitializeComponent();
     cgai = CGuiApplicationIntermediate.InstanceCreation();
 }
コード例 #9
0
ファイル: FormAddUser.cs プロジェクト: mano55/fcm
 public FormAddUser()
 {
     InitializeComponent();
     cgai = CGuiApplicationIntermediate.InstanceCreation();
 }
コード例 #10
0
ファイル: FormEditPlayersList.cs プロジェクト: mano55/fcm
 public FormEditPlayersList()
 {
     InitializeComponent();
     cgai = CGuiApplicationIntermediate.InstanceCreation();
 }
コード例 #11
0
ファイル: FormEditPlayersList.cs プロジェクト: mano55/fcm
 public FormEditPlayersList()
 {
     InitializeComponent();
     cgai = CGuiApplicationIntermediate.InstanceCreation();
 }