示例#1
0
 public static FileCollector GetInstance()
 {
     if ( instance == null )
     {
         instance = new FileCollector();
     }
     return instance;
 }
示例#2
0
        private void UpdateTitle()
        {
            StringBuilder builder = new StringBuilder(m_originalTitle);

            if (FileCollector.GetInstance().Collecting)
            {
                builder.Append(" - collecting - ");
                builder.Append(FileCollector.GetInstance().GetCollectedFileCount());
            }
            else
            {
                builder.Append(" - collected - ");
                builder.Append(FileCollector.GetInstance().GetCollectedFileCount());
            }

            this.Text = builder.ToString();
        }
示例#3
0
 private void m_btRefreshStatus_Click(object sender, EventArgs e)
 {
     FileCollector.GetInstance().Recollect();
 }