Example #1
0
 public void SetDatabase(XmlDatabase db)
 {
     this.db           = db;
     list              = db.ActiveHandlers();
     AutoScrollMinSize = new Size(950, list.Length * 50 + 50);
     TimeSpanChanged(this, new ViewTimeSpan(FirstTimeStamp(), LastTimeStamp()));
     Invalidate();
 }
Example #2
0
        private void toolButtonNewCase_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.FileName = "c:\\Case\\UserTest.xml";
            DialogResult result = ofd.ShowDialog(this);

            if (result != DialogResult.OK)
            {
                return;
            }

            db = new XmlDatabase(ofd.FileName);
            timeLineViewPort.SetDatabase(db);

            toolButtonSaveCase.Enabled = true;
        }