private void OnlineStatusAtLaunch() { Launcher.UpdateDiscord(false); Delegate myDelegate = (Action)Update_gatherButton; Delegate secondDelegate = (Action)Update_ServLabel; WebsiteButton.Dispatcher.Invoke(myDelegate); ServInfoLabel.Dispatcher.Invoke(secondDelegate); }
private void OnTimedEvent(object source, ElapsedEventArgs e) { Launcher.UpdateDiscord(false); Delegate myDelegate = (Action)Update_gatherButton; Delegate secondDelegate = (Action)Update_ServLabel; WebsiteButton.Dispatcher.Invoke(myDelegate); ServInfoLabel.Dispatcher.Invoke(secondDelegate); }
private void ChangeDiscord_Click(object sender, RoutedEventArgs e) { Launcher.discordCustomStatus = DiscordTxtbox.Text; Launcher.UpdateDiscord(false); XmlBuilder.CreateConfigXml(); }