Esempio n. 1
0
        private void clearHistoryBtn_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(Localise.GetPhrase("Are you sure you want to clear the history of all conversions?\r\nThis will cause MCEBuddy to reconvert all files being monitored."),
                                Localise.GetPhrase("Clear History"),
                                MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == System.Windows.Forms.DialogResult.Yes)
            {
                try
                {
                    _pipeProxy.ClearHistory(); // clear the history
                }
                catch (Exception e1)
                {
                    MessageBox.Show(Localise.GetPhrase("Unable to communicate with engine."), Localise.GetPhrase("Communication Error"), MessageBoxButtons.OK, MessageBoxIcon.Error);
                    Log.WriteSystemEventLog(Localise.GetPhrase("MCEBuddy GUI: Unable to clear History File"), EventLogEntryType.Warning);
                    Log.WriteSystemEventLog(e1.ToString(), EventLogEntryType.Warning);
                }

                // Reload form
                GetAndDisplayHistoryLog();
            }
        }