Example #1
0
 public void DetachProject()
 {
     if (this.proj != null)
     {
         if (ehRefresh != null)
         {
             this.proj.Refresh -= ehRefresh;
             ehRefresh          = null;
         }
         this.proj = null;
     }
 }
Example #2
0
        public void AttachProject(IProject proj)
        {
            if (this.proj != proj)
            {
                DetachProject();

                this.proj          = (ImageProject)proj;
                ehRefresh          = new EventHandler(project_Refresh);
                this.proj.Refresh += ehRefresh;
            }
            this.RefreshUI();
        }