示例#1
0
        public override DataSet Clone()
        {
            EntriesDataSet cln = ((EntriesDataSet)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }