Esempio n. 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                LogLevel PrevLogLevel = m_MainList.Logging;

                m_MainList.ExcludeExtensions     = ExcludeExtensions;
                m_MainList.CompressedExtensions  = CompressedExtensions;
                m_MainList.ExcludeFolderPatterns = ExcludeFolderPatterns;
                m_MainList.ConstrainArchiveSize  = cbConstrainArchiveSize.Checked
                    ? (long)(double.Parse(tbConstrainArchiveSizeInGB.Text) * BytesPerGB) : long.MaxValue;
                m_MainList.Logging = (LogLevel)cbLogLevel.SelectedItem;
                m_MainList.Logfile = tbLogfile.Text;

                if (PrevLogLevel != m_MainList.Logging)
                {
                    ZippyForm.LogWriteLine(LogLevel.Information, "Log detail level changed to " + m_MainList.Logging.ToString() + ".");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            DialogResult = DialogResult.OK;
            Close();
        }
Esempio n. 2
0
        void Populate(ListBox lb)
        {
            ZippyForm.LogWriteLine(LogLevel.HeavyDebug, "RestoreForm populating projects list...");

            lb.Sorted = false;
            lb.Items.Clear();
            lock (MainList.Projects)
            {
                foreach (BackupProject bp in MainList.Projects)
                {
                    lb.Items.Add(bp);
                }
            }
        }
Esempio n. 3
0
 void OnNewSearchStarted()
 {
     ZippyForm.LogWriteLine(LogLevel.HeavyDebug, "A new search has started...");
     listRestoreDates.Items.Clear();
 }