public static FileCollector GetInstance() { if ( instance == null ) { instance = new FileCollector(); } return instance; }
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(); }
private void m_btRefreshStatus_Click(object sender, EventArgs e) { FileCollector.GetInstance().Recollect(); }