示例#1
0
 public void Dispose()
 {
     DisposePropertyChangedEvent();
     Top.Dispose();
     Front.Dispose();
     Left.Dispose();
     Rear.Dispose();
     Right.Dispose();
 }
        void ReleaseDesignerOutlets()
        {
            if (Back != null)
            {
                Back.Dispose();
                Back = null;
            }

            if (CapturedImage != null)
            {
                CapturedImage.Dispose();
                CapturedImage = null;
            }

            if (CaptureImage != null)
            {
                CaptureImage.Dispose();
                CaptureImage = null;
            }

            if (ClearPicture != null)
            {
                ClearPicture.Dispose();
                ClearPicture = null;
            }

            if (Describe != null)
            {
                Describe.Dispose();
                Describe = null;
            }

            if (Emotion != null)
            {
                Emotion.Dispose();
                Emotion = null;
            }

            if (Front != null)
            {
                Front.Dispose();
                Front = null;
            }

            if (ImageData != null)
            {
                ImageData.Dispose();
                ImageData = null;
            }

            if (OCR != null)
            {
                OCR.Dispose();
                OCR = null;
            }
        }
示例#3
0
 public void Dispose()
 {
     if (Doc == null || Doc.IsDisposed)
     {
         return;
     }
     using (Doc.LockDocument())
     {
         Tree?.Dispose();
         Map?.Dispose();
         Place?.Dispose();
         Front?.Dispose();
         Doc.Database.BeginSave -= Database_BeginSave;
     }
     //Doc = null;
 }
        void ReleaseDesignerOutlets()
        {
            if (Back != null)
            {
                Back.Dispose();
                Back = null;
            }

            if (Dashboard != null)
            {
                Dashboard.Dispose();
                Dashboard = null;
            }

            if (Front != null)
            {
                Front.Dispose();
                Front = null;
            }

            if (Left != null)
            {
                Left.Dispose();
                Left = null;
            }

            if (Odometer != null)
            {
                Odometer.Dispose();
                Odometer = null;
            }

            if (Right != null)
            {
                Right.Dispose();
                Right = null;
            }

            if (Rim != null)
            {
                Rim.Dispose();
                Rim = null;
            }

            if (Seat != null)
            {
                Seat.Dispose();
                Seat = null;
            }

            if (Seats != null)
            {
                Seats.Dispose();
                Seats = null;
            }

            if (VIN != null)
            {
                VIN.Dispose();
                VIN = null;
            }
        }