/// <summary> /// Main Function. Loads up the login page on startup /// </summary> public MainWindow() { InitializeComponent(); db = new database(this, db_server, db_username, db_password, db_database); pages.login newPage = new pages.login(this); pageTransitionControl.TransitionType = PageTransitionType.Fade; pageTransitionControl.ShowPage(newPage); timer = new DispatcherTimer(); timer.Tick += new EventHandler(timer_tick); timer.Interval = new TimeSpan(0, 0, 3); timer.Start(); }
public faq(login root) { parent = root; InitializeComponent(); }
/// <summary> /// Sign out an account /// </summary> /// <param name="id"></param> public void signout(int id) { pages.login newPage = new pages.login(this); pageTransitionControl.TransitionType = PageTransitionType.Fade; pageTransitionControl.ShowPage(newPage); }