Ejemplo n.º 1
0
        protected override void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            propertyMap?.Dispose();
            Color?.Dispose();
            Offset?.Dispose();

            base.Dispose();
        }
Ejemplo n.º 2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposed)
     {
         return;
     }
     if (disposing)
     {
         propertyMap?.Dispose();
         Color?.Dispose();
         Offset?.Dispose();
     }
     disposed = true;
 }
Ejemplo n.º 3
0
        void Offset_Remove(int index)
        {
            Offset     u    = _copy.Offsets[index].Clone();
            List <int> path = Track.GetPath(_copy);

            Program.Project.Undo.Add($"Copy Offset {index + 1} Removed", () => {
                ((Copy)Track.TraversePath(path)).Insert(index, u.Clone());
            }, () => {
                ((Copy)Track.TraversePath(path)).Remove(index);
            }, () => {
                u.Dispose();
            });

            _copy.Remove(index);
        }
 void ReleaseDesignerOutlets()
 {
     if (Bias != null)
     {
         Bias.Dispose();
         Bias = null;
     }
     if (CameraView != null)
     {
         CameraView.Dispose();
         CameraView = null;
     }
     if (Duration != null)
     {
         Duration.Dispose();
         Duration = null;
     }
     if (ISO != null)
     {
         ISO.Dispose();
         ISO = null;
     }
     if (NoCamera != null)
     {
         NoCamera.Dispose();
         NoCamera = null;
     }
     if (Offset != null)
     {
         Offset.Dispose();
         Offset = null;
     }
     if (Segments != null)
     {
         Segments.Dispose();
         Segments = null;
     }
 }