Ejemplo n.º 1
0
 public Canvas(string name, string title, string fileName, int width, int height)
 {
     InitializeComponent();
     Name   = name;
     Text   = title;
     Width  = width;
     Height = height;
     CanvasManager.Add(this);
     FileEnabled    = fileName != null || FileEnabled;
     Chart.FileName = fileName ?? (FileEnabled ? Path.Combine(FileDir, $"{FileNamePrefix}{Name}{DateTime.Now:MMddyyyhhmmss}{FileNameSuffix}.gif") : Chart.FileName);
     if (!FileEnabled)
     {
         Show();
     }
 }
Ejemplo n.º 2
0
        public Canvas(string name, string title, string fileName, int width, int height)
        {
            InitializeComponent();
            Name   = name;
            Text   = title;
            Width  = width;
            Height = height;
            CanvasManager.Add(this);
            FileEnabled         = fileName != null ? true : FileEnabled;
            this.chart.FileName = fileName != null ? fileName : FileEnabled?System.IO.Path.Combine(FileDir, string.Format("{0}{1}{2:MMddyyyhhmmss}{3}.gif", FileNamePrefix, Name, DateTime.Now, FileNameSuffix)) : this.chart.FileName;

            if (!FileEnabled)
            {
                Show();
            }
        }
Ejemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     CanvasManager.Remove(this);
     base.Dispose(disposing);
 }