public FileManager(string CurrentFile) { InitializeComponent(); if (CurrentFile == "") { this.lbCurrent.Text = "Current file: none"; } else { this.lbCurrent.Text = "Current file: " + CurrentFile; } _vldLaptimes = new VisualListDetails(true); _vldLaptimes.Columns.Add("id", "#", 30); _vldLaptimes.Columns.Add("track", "Circuit", 180); _vldLaptimes.Columns.Add("car", "Car", 180); _vldLaptimes.Columns.Add("lap", "Lap", 40); _vldLaptimes.Columns.Add("s1", "S1", 80); _vldLaptimes.Columns.Add("s2", "S2", 80); _vldLaptimes.Columns.Add("s3", "S3", 80); _vldLaptimes.Columns.Add("laptime", "Laptime", 100); _vldLaptimes.Columns.Add("date", "Driven at", 130); _vldLaptimes.Columns.Add("file", "File", 20); _vldLaptimes.ItemActivate += new EventHandler(_vldLaptimes_ItemActivate); split.Panel2.Controls.Add(_vldLaptimes); _tList.Tick += new EventHandler(_tList_Tick); _tList.Start(); }
public FileManager(string CurrentFile) { InitializeComponent(); if (CurrentFile == "") this.lbCurrent.Text = "Current file: none"; else this.lbCurrent.Text = "Current file: " + CurrentFile; _vldLaptimes = new VisualListDetails(true); _vldLaptimes.Columns.Add("id", "#", 30); _vldLaptimes.Columns.Add("track", "Circuit", 180); _vldLaptimes.Columns.Add("car", "Car", 180); _vldLaptimes.Columns.Add("lap", "Lap", 40); _vldLaptimes.Columns.Add("s1", "S1",80); _vldLaptimes.Columns.Add("s2", "S2",80); _vldLaptimes.Columns.Add("s3", "S3",80); _vldLaptimes.Columns.Add("laptime", "Laptime", 100); _vldLaptimes.Columns.Add("date", "Driven at", 130); _vldLaptimes.Columns.Add("file", "File", 20); _vldLaptimes.ItemActivate += new EventHandler(_vldLaptimes_ItemActivate); split.Panel2.Controls.Add(_vldLaptimes); _tList.Tick += new EventHandler(_tList_Tick); _tList.Start(); }
public ucSelectModel() { InitializeComponent(); _models = new VisualListDetails(true); _models.Columns.Add("id", "Description", 130); _models.Columns.Add("team", "Team", 160); _models.Columns.Add("file", "File", 1); _models.MultiSelect = false; _models.ItemSelectionChanged += _models_ItemSelectionChanged; splitContainer1.Panel1.Controls.Add(_models); ucEngine = new ucSelectModel_EngineCurve(); ucEngine.CurveUpdated += new AnonymousSignal(ucEngine_CurveUpdated); splitContainer1.Panel2.Controls.Add(ucEngine); }
public DataChannels() { InitializeComponent(); channels = new VisualListDetails(true); channels.Location = new Point(10, 10); channels.Size = new Size(350, 500); channels.Columns.Add("id", "#", 50); channels.Columns.Add("name", "Name", 150); channels.Columns.Add("freq", "", 50); Controls.Add(channels); PropertyAnalyser(typeof(IDriverGeneral)); PropertyAnalyser(typeof(IDriverPlayer)); PropertyAnalyser(typeof(ISession)); channels.ShowGroups = true; }
public MemoryVision() { InitializeComponent(); FormClosing += new FormClosingEventHandler(MemoryVision_FormClosing); _mTable = new VisualListDetails(true); _mTable.Columns.Add("ID", "ID", 70); _mTable.Columns.Add("Description", "Description", 300); _mTable.Columns.Add("Address", "Address", 200); _mTable.Columns.Add("Type", "Type", 70); _mTable.Columns.Add("Live", "Live Watch", 100); _mLiveWatch = new Timer{Interval=50}; _mLiveWatch.Tick += new EventHandler(_mLiveWatch_Tick); _mLiveWatch.Start(); this.split.Panel2.Controls.Add(_mTable); _mWaveform = new MemoryWaveform(); _mWaveform.Loaded += new Signal(_mWaveform_Loaded); }
public MemoryVision() { InitializeComponent(); FormClosing += new FormClosingEventHandler(MemoryVision_FormClosing); _mTable = new VisualListDetails(true); _mTable.Columns.Add("ID", "ID", 70); _mTable.Columns.Add("Description", "Description", 300); _mTable.Columns.Add("Address", "Address", 200); _mTable.Columns.Add("Type", "Type", 70); _mTable.Columns.Add("Live", "Live Watch", 100); _mLiveWatch = new Timer { Interval = 50 }; _mLiveWatch.Tick += new EventHandler(_mLiveWatch_Tick); _mLiveWatch.Start(); this.split.Panel2.Controls.Add(_mTable); _mWaveform = new MemoryWaveform(); _mWaveform.Loaded += new Signal(_mWaveform_Loaded); }
private double _timeScaleOffset = 0; // % of the lap offseted. #endregion Fields #region Constructors public MainForm() { this.FormClosing += new FormClosingEventHandler(_FormClosing); InitializeComponent(); // TRACK MAP cTrackMap = new TrackMap {Dock = DockStyle.Fill}; this.cSidePanelSplit.Panel1.Controls.Add(cTrackMap); // TRACKS LIST cTracks = new VisualListDetails(false) { Size = new Size(1, 120), Dock = DockStyle.Bottom }; cTracks.Columns.Add("track", "Track", 200); cTracks.MultiSelect = false; cTracks.ItemSelectionChanged += cTracks_ItemSelectionChanged; this.cSidePanelSplit.Panel2.Controls.Add(cTracks); // SESSIONS LIST cSessions = new VisualListDetails(false) { Size = new Size(1, 120), Dock = DockStyle.Bottom }; cSessions.Columns.Add("session", "Session", 150); cSessions.Columns.Add("date", "Date", 100); cSessions.Columns.Add("iter", "#", 100); cSessions.MultiSelect = false; cSessions.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(cSessions_ItemSelectionChanged); this.cSidePanelSplit.Panel2.Controls.Add(cSessions); // LAPS LIST cLaps = new VisualListDetails(false) { Size = new Size(1, 120), Dock = DockStyle.Bottom }; cLaps.Columns.Add("lap", "Lap #"); cLaps.Columns.Add("time", "Time"); cLaps.Columns.Add("file", "file",1); cLaps.ItemSelectionChanged += LapsList_Changed; this.cSidePanelSplit.Panel2.Controls.Add(cLaps); // Plotter cPlotter = new Plotter {Dock = DockStyle.Fill}; cPlotter.Drawn += cPlotter_Drawn; cPlotter.MouseWheel += cPlotter_Scroll; cPlotter.timeline.Scroll += cPlotter_TimelineScroll; // Plotter configuration _PlotterConfiguration = new PlotterConfigurations(); _PlotterConfiguration.Load("ChartSetup.txt"); _PlotterConfiguration.Configure(cPlotter); cScreenSplit.Panel2.Controls.Add(cPlotter); // Select files try { List<string> files = Directory.GetFiles(LogsMap).ToList(); List<string> tracks = new List<string>(); foreach (string log in files) { string track = log.Substring(0, log.IndexOf("+")); int slash = track.IndexOf("Logs"); track = track.Substring(slash + 5); if (tracks.Contains(track) == false) tracks.Add(track); } foreach (string track in tracks) { cTracks.Items.Add(new ListViewItem(track)); } }catch(Exception ex) { MessageBox.Show(ex.Message); MessageBox.Show(ex.StackTrace); } }
public MainForm() { this.FormClosing += new FormClosingEventHandler(_FormClosing); InitializeComponent(); // TRACK MAP cTrackMap = new TrackMap { Dock = DockStyle.Fill }; this.cSidePanelSplit.Panel1.Controls.Add(cTrackMap); // TRACKS LIST cTracks = new VisualListDetails(false) { Size = new Size(1, 120), Dock = DockStyle.Bottom }; cTracks.Columns.Add("track", "Track", 200); cTracks.MultiSelect = false; cTracks.ItemSelectionChanged += cTracks_ItemSelectionChanged; this.cSidePanelSplit.Panel2.Controls.Add(cTracks); // SESSIONS LIST cSessions = new VisualListDetails(false) { Size = new Size(1, 120), Dock = DockStyle.Bottom }; cSessions.Columns.Add("session", "Session", 150); cSessions.Columns.Add("date", "Date", 100); cSessions.Columns.Add("iter", "#", 100); cSessions.MultiSelect = false; cSessions.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(cSessions_ItemSelectionChanged); this.cSidePanelSplit.Panel2.Controls.Add(cSessions); // LAPS LIST cLaps = new VisualListDetails(false) { Size = new Size(1, 120), Dock = DockStyle.Bottom }; cLaps.Columns.Add("lap", "Lap #"); cLaps.Columns.Add("time", "Time"); cLaps.Columns.Add("file", "file", 1); cLaps.ItemSelectionChanged += LapsList_Changed; this.cSidePanelSplit.Panel2.Controls.Add(cLaps); // Plotter cPlotter = new Plotter { Dock = DockStyle.Fill }; cPlotter.Drawn += cPlotter_Drawn; cPlotter.MouseWheel += cPlotter_Scroll; cPlotter.timeline.Scroll += cPlotter_TimelineScroll; // Plotter configuration _PlotterConfiguration = new PlotterConfigurations(); _PlotterConfiguration.Load("ChartSetup.txt"); _PlotterConfiguration.Configure(cPlotter); cScreenSplit.Panel2.Controls.Add(cPlotter); // Select files try { List <string> files = Directory.GetFiles(LogsMap).ToList(); List <string> tracks = new List <string>(); foreach (string log in files) { string track = log.Substring(0, log.IndexOf("+")); int slash = track.IndexOf("Logs"); track = track.Substring(slash + 5); if (tracks.Contains(track) == false) { tracks.Add(track); } } foreach (string track in tracks) { cTracks.Items.Add(new ListViewItem(track)); } }catch (Exception ex) { MessageBox.Show(ex.Message); MessageBox.Show(ex.StackTrace); } }