Started results UI.

This commit is contained in:
AJ
2018-05-18 16:17:30 -04:00
parent 21e498619c
commit 4ac806d491
9 changed files with 466 additions and 6 deletions

42
CutToLength/Form2.cs Normal file
View File

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CutToLength
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void dataGridView1_SelectionChanged(object sender, EventArgs e)
{
}
private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
{
var selectedBin = dataGridView1.Rows[e.RowIndex].DataBoundItem as Bin;
if (selectedBin == null)
return;
class11.Bin = selectedBin;
class11.Invalidate();
}
public List<Bin> Bins
{
get { return dataGridView1.DataSource as List<Bin>; }
set { dataGridView1.DataSource = value; }
}
}
}