Пример #1
0
        public LogView2()
        {
            InitializeComponent();

            DataClasses1DataContext databaseLogs = new DataClasses1DataContext();
            dataGridView1.DataSource = databaseLogs.PartsOuts; // databaseLogs.Logs;
        }
Пример #2
0
        public PartsStats()
        {
            InitializeComponent();

            this.WindowState = FormWindowState.Maximized;

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