예제 #1
0
 private void ShowFloatingLog(string filename)
 {
     Application.DoEvents();
     System.Drawing.Point p = this.PointToClient(new System.Drawing.Point(dockSymbols.Location.X + dockSymbols.Width + 10, dockSymbols.Location.Y + 55));
     DevExpress.XtraBars.Docking.DockPanel dp = dockManager1.AddPanel(p);
     dp.MakeFloat(p);
     dp.FloatSize = new Size(dockManager1.Form.ClientSize.Width - dockSymbols.Width - 20, dockSymbols.Height - 10);
     dp.Hide();
     dp.Text = "CANBus logfile: " + Path.GetFileName(filename);
     RealtimeGraphControl lfv = new RealtimeGraphControl();
     dp.Controls.Add(lfv);
     lfv.ImportT5Logfile(filename);
     lfv.Dock = DockStyle.Fill;
     dp.Show();
 }
예제 #2
0
        private void OpenAndDisplayLogFile(string filename)
        {
            // create a new dock with a graph view in it
            //dockManager1.BeginUpdate();
            DockPanel dp = dockManager1.AddPanel(DockingStyle.Left);
            dp.Size = new Size(dockManager1.Form.ClientSize.Width - dockSymbols.Width, dockSymbols.Height);
            dp.Hide();
            //dp.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;

            //dp.FloatLocation = new System.Drawing.Point(dockSymbols.Location.X + dockSymbols.Width + 5, dockSymbols.Location.Y + 5);
            //dp.FloatSize = new Size(this.Bounds.
            //dockManager1.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Right);
            dp.Text = "CANBus logfile: " + Path.GetFileName(filename);
            RealtimeGraphControl lfv = new RealtimeGraphControl();
            //LogFilters lfhelper = new LogFilters();
            //lfv.SetFilters(lfhelper.GetFiltersFromRegistry());
            dp.Controls.Add(lfv);
            lfv.ImportT5Logfile(filename);
            //dp.Height = 600;
            lfv.Dock = DockStyle.Fill;

            dp.Show();

            //dockManager1.EndUpdate();
        }
예제 #3
0
        private void OpenAndDisplayLogFile(string filename)
        {
            // create a new dock with a graph view in it
            //dockManager1.BeginUpdate();
            DevExpress.XtraBars.Docking.DockPanel dp = dockManager1.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Left);

            dp.Size = new Size(dockManager1.Form.ClientSize.Width - dockSymbols.Width, dockSymbols.Height);
            dp.Hide();
            dp.Text = "CANBus logfile: " + Path.GetFileName(filename);
            RealtimeGraphControl lfv = new RealtimeGraphControl();
            LogFilters lfhelper = new LogFilters();
            lfv.SetFilters(lfhelper.GetFiltersFromRegistry());
            dp.Controls.Add(lfv);
            lfv.ImportT5Logfile(filename);
            //dp.Height = 600;
            lfv.Dock = DockStyle.Fill;
            dp.Show();
        }