private void UpdateContentNow() { if (UpdateContent != null) { UpdateContent.Invoke(this, null); } }
private void UpdateContentNow() { if (UpdateContent != null) { UpdateContent.Invoke(this, null); } _reloadPending = false; }
private async void AdvancedSettings_ShowFeedbackWarning(object sender, EventArgs e) { var result = await this.ShowMessageAsync(Properties.Resources.DialogAdvancedFeaturesWarningTitle, Properties.Resources.DialogAdvancedFeaturesWarningText, MessageDialogStyle.AffirmativeAndNegative); if (result == MessageDialogResult.Affirmative) { Settings.Default.EnableAdvancedFeatures = true; Settings.Default.Save(); ProcessWatcher.Restart(); } UpdateContent?.Invoke(); }
//Invokes Method private void buttonSubmit_Click(object sender, EventArgs e) { UpdateContent?.Invoke(this, new EventArgs()); this.Close(); }