Ejemplo n.º 1
0
        public LogView2()
        {
            InitializeComponent();

            DataClasses1DataContext databaseLogs = new DataClasses1DataContext();
            dataGridView1.DataSource = databaseLogs.PartsOuts; // databaseLogs.Logs;
        }
Ejemplo n.º 2
0
        public PartsStats()
        {
            InitializeComponent();

            this.WindowState = FormWindowState.Maximized;

            using (DataClasses1DataContext databaseLogs = new DataClasses1DataContext())
            {
                dataGridView1.DataSource = databaseLogs.Logs.ToList();
            }
        }