public void OpenEditor(LogEntry logEntry)
        {
            try
            {
                if (logEntry != null)
                {
                    logEntry = logEntry.Clone();
                }

                var editor = new LogEntryEditorWindow(logEntry);
                var result = editor.ShowDialog();

                if (result.HasValue && result.Value)
                {
                    RetrieveData();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        public LogEntryEditorWindow(LogEntry logEntry)
        {
            InitializeComponent();

            DataContext = logEntry;
        }