/// <summary>
 /// method for delete content
 /// </summary>
 private void DeleteContend()
 {
     this.thread = new Thread((object y) =>
     {
         try
         {
             this.delcont.AddContent();
             this.delcont.StartDelete();
             this.delcont.Reset();
             MediatorProgressBar.GetRoot(this.root);
             MediatorProgressBar.Count(100);
             MediatorProgressBar.Close();
         }
         catch (Exception e)
         {
             try
             {
                 MessageBox.Show(string.Format("Access is denied {0}", e.Message.Remove(0, e.Message.IndexOf('"'))), "Delete", MessageBoxButton.OK, MessageBoxImage.Error);
             }
             catch (Exception ex)
             {
             }
             MediatorProgressBar.Count(100);
             MediatorProgressBar.Close();
         }
     });
     thread.Start();
 }
 /// <summary>
 /// method for copy content
 /// </summary>
 private void CopyContent()
 {
     this.thread = new Thread((object y) =>
     {
         try
         {
             this.copyCont.AddContent();
             this.copyCont.StartCopy();
             MediatorProgressBar.GetRoot(this.root);
             MediatorProgressBar.Count(100);
             MediatorProgressBar.Close();
         }
         catch (Exception e)
         {
             this.copyCont.ErrorDelete();
             MessageBox.Show(e.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
             MediatorProgressBar.GetRoot(this.root);
             MediatorProgressBar.Count(100);
             MediatorProgressBar.Close();
         }
     });
     thread.Start();
 }