public override DataSet Clone() { EntriesDataSet cln = ((EntriesDataSet)(base.Clone())); cln.InitVars(); return(cln); }
static int GetMaxEntry(EntriesDataSet entriesDataSet) { int max = 0; foreach (EntriesDataSet.EntriesRow row in entriesDataSet.Entries.Rows) { if (row.Entry > max) { max = row.Entry; } } return(max); }
public FileViewer(string fileName) { InitializeComponent(); Text += fileName; this.Width = SystemInformation.VirtualScreen.Width; ContextLogger.EntriesDataSet dataSet = new ContextLogger.EntriesDataSet(); dataSet.ReadXml(fileName); m_View.Table = dataSet.Entries; m_EntriesGridView.DataSource = m_View; OnFilter(this, EventArgs.Empty); }