/// <summary> /// Clear all log entries /// </summary> public async void ClearLog() { MetroWindow parentWindow = FindParent <MetroWindow>(this); MessageDialogResult dialogResult = await parentWindow.ShowMessageAsync("Clear log", "Do you really want to clear all log entries.", MessageDialogStyle.AffirmativeAndNegative, new MetroDialogSettings() { AffirmativeButtonText = "Clear", NegativeButtonText = "Cancel" }); if (dialogResult == MessageDialogResult.Affirmative) { LogEvents.Clear(); } }
public void Clear() { LogEvents.Clear(); }
private void OnClear() { LogEvents.Clear(); }