Пример #1
0
 public FilesRemover(FilesRemoverModel filesRemoverModel, ILogger logger, RichTextBox logBox, ProgressBar progressBar)
 {
     this.filesRemoverModel = filesRemoverModel;
     this.logger            = logger;
     this.logBox            = logBox;
     this.progressBar       = progressBar;
     allDirectoriesCount    = -1;
 }
Пример #2
0
        public FilesRemoverForm()
        {
            InitializeComponent();

            // Logi do MessageBox-a
            logger = new MessageBoxLogger();

            // Ustawiane wszystkie opcje
            _filesRemoverModel = new FilesRemoverModel();

            // padding okienka wyświetlającego logi
            logBox.SelectionTabs = new[] { 0, 800 };
        }