public MainWindow_Category() { Helper.loadUsers(); Helper.loadArticles(); //Data.articles.Reverse(); Helper.loadArticlePreview(); InitializeComponent(); Border_Background.Background = SomeBorderColor.currentColor; Label_Category.Content = SomeCategory.currentCategory; }
public MainWindowUser() { System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer(); dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick); //dispatcherTimer.Interval = new TimeSpan(0, 0, 1); This code is for a countdown. dispatcherTimer.Start(); InitializeComponent(); Helper.loadUsers(); hideBar(); Label_Username.Content = Someone.currentUser.nickname; }
public MainWindow() { Helper.loadUsers(); Helper.loadArticles(); //Data.articles.Reverse(); Helper.loadArticlePreview(); InitializeComponent(); DatabaseHelper.EstablishConnection(); hideBar(); }