private void buttonLogIn_Click(object sender, EventArgs e) { CGuiApplicationIntermediate cgai = CGuiApplicationIntermediate.InstanceCreation(); if (cgai.logIn(textBoxUser.Text, textBoxPassword.Text)) { this.Hide(); cgai.showHomePage(); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CGuiApplicationIntermediate cgai = CGuiApplicationIntermediate.InstanceCreation(); Console.WriteLine("Version: " + Environment.Version.ToString()); Application.Run(new FormLogIn()); ; }
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; }
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); }
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; } }
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; } }
public FormAddUser() { InitializeComponent(); cgai = CGuiApplicationIntermediate.InstanceCreation(); }
public FormEditPlayersList() { InitializeComponent(); cgai = CGuiApplicationIntermediate.InstanceCreation(); }