Renamed Forms

This commit is contained in:
aj
2018-06-01 21:26:25 -04:00
parent a7b0f90a32
commit 4277b866af
8 changed files with 18 additions and 18 deletions

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 ResultsForm : Form
{
public ResultsForm()
{
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; }
}
}
}