コード例 #1
0
 public Canvas(string name, string title, string fileName) : base()
 {
     this.InitializeComponent();
     this.Name = name;
     this.Text = title;
     if (Canvas.FileEnabled)
     {
         this.chart.FileName = Canvas.FileDir + "dd" + Canvas.FileNamePrefix + this.Name + DateTime.Now.ToString("D") + Canvas.FileNameSuffix + "dd";
     }
     this.chart.FileName = fileName;
     CanvasManager.Add(this);
     if (!Canvas.FileEnabled)
     {
         this.Show();
     }
 }
コード例 #2
0
 public Canvas(string name, string title, string fileName, int width, int height) : base()
 {
     this.InitializeComponent();
     this.Name = name;
     this.Text = title;
     if (Canvas.FileEnabled)
     {
         this.chart.FileName = Canvas.FileDir + Canvas.FileNamePrefix + this.Name + DateTime.Now.ToString("D") + Canvas.FileNameSuffix;
     }
     if (fileName != null)
     {
         this.chart.FileName = fileName;
     }
     CanvasManager.Add(this);
     this.Width  = width;
     this.Height = height;
     if (!Canvas.FileEnabled)
     {
         this.Show();
     }
 }