Ejemplo n.º 1
0
        private void core_OnDeleteProcessChanged(object sender, DeleteProcessUpdateEventArgs e)
        {
            switch (e.Status)
            {
            case DirectoryDeletionStatusTypes.Deleted:
                this.lbStatus.Text = String.Format(RED2.Properties.Resources.removing_empty_folders, (e.ProgressStatus + 1), e.FolderCount);
                this.tree.UpdateItemIcon(e.Path, DirectoryIcons.deleted);
                break;

            case DirectoryDeletionStatusTypes.Protected:
                this.tree.UpdateItemIcon(e.Path, DirectoryIcons.protected_icon);
                break;

            default:
                this.tree.UpdateItemIcon(e.Path, DirectoryIcons.folder_warning);
                break;
            }

            this.pbProgressStatus.Value = e.ProgressStatus;
        }
Ejemplo n.º 2
0
        private void core_OnDeleteProcessChanged(object sender, DeleteProcessUpdateEventArgs e)
        {
            switch (e.Status)
            {
                case DirectoryDeletionStatusTypes.Deleted:
                    this.lbStatus.Text = String.Format(RED2.Properties.Resources.removing_empty_folders, (e.ProgressStatus + 1), e.FolderCount);
                    this.tree.UpdateItemIcon(e.Path, DirectoryIcons.deleted);
                    break;

                case DirectoryDeletionStatusTypes.Protected:
                    this.tree.UpdateItemIcon(e.Path, DirectoryIcons.protected_icon);
                    break;

                default:
                    this.tree.UpdateItemIcon(e.Path, DirectoryIcons.folder_warning);
                    break;
            }

            this.pbProgressStatus.Value = e.ProgressStatus;
        }