Beispiel #1
0
        /// <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();
            }
        }
Beispiel #2
0
 public void Clear()
 {
     LogEvents.Clear();
 }
 private void OnClear()
 {
     LogEvents.Clear();
 }