Пример #1
0
 public override bool GetIsDirty()
 {
     try
     {
         Iocomp.Classes.CollectionBase collectionBase  = base.OriginalInstance as Iocomp.Classes.CollectionBase;
         Iocomp.Classes.CollectionBase collectionBase2 = base.WorkingInstance as Iocomp.Classes.CollectionBase;
         if (collectionBase.Count != collectionBase2.Count)
         {
             return(true);
         }
         int num = 0;
         while (true)
         {
             if (num < collectionBase2.Count)
             {
                 object obj  = ((IList)collectionBase)[num];
                 object obj2 = ((IList)collectionBase2)[num];
                 if (!(obj.GetType() != obj2.GetType()))
                 {
                     PlugInStandard classPlugIn = this.GetClassPlugIn(obj2);
                     classPlugIn.WorkingInstance  = obj2;
                     classPlugIn.OriginalInstance = obj;
                     classPlugIn.UploadDisplay();
                     if (classPlugIn.GetIsDirty())
                     {
                         break;
                     }
                     num++;
                     continue;
                 }
                 return(true);
             }
             return(false);
         }
         return(true);
     }
     finally
     {
         if (this.Navigator.SelectedObject != null)
         {
             PlugInStandard classPlugIn = this.GetClassPlugIn(this.Navigator.SelectedObject);
             classPlugIn.WorkingInstance = this.Navigator.SelectedObject;
             classPlugIn.UploadDisplay();
         }
     }
 }
Пример #2
0
 private void Navigator_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.Navigator.SelectedObject == null)
     {
         TabControl[] classTabControls = this.m_ClassTabControls;
         foreach (TabControl tabControl in classTabControls)
         {
             tabControl.Visible = false;
         }
     }
     else
     {
         for (int j = 0; j < this.m_ClassTabControls.Length; j++)
         {
             this.m_ClassTabControls[j].Visible = (j == this.GetPlugInIndex(this.Navigator.SelectedObject));
         }
         PlugInStandard classPlugIn = this.GetClassPlugIn(this.Navigator.SelectedObject);
         classPlugIn.WorkingInstance = this.Navigator.SelectedObject;
         classPlugIn.UploadDisplay();
     }
 }