Fixed DataSource reference.
This commit is contained in:
@@ -114,6 +114,7 @@ namespace CutList.Forms
|
|||||||
var json = JsonConvert.SerializeObject(itemsToSave, Formatting.Indented);
|
var json = JsonConvert.SerializeObject(itemsToSave, Formatting.Indented);
|
||||||
|
|
||||||
var saveFileDialog = new SaveFileDialog();
|
var saveFileDialog = new SaveFileDialog();
|
||||||
|
saveFileDialog.FileName = documentPath == null ? null : Path.GetFileName(documentPath);
|
||||||
saveFileDialog.Filter = "Json File|*.json";
|
saveFileDialog.Filter = "Json File|*.json";
|
||||||
|
|
||||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
@@ -313,8 +314,8 @@ namespace CutList.Forms
|
|||||||
parts = new BindingList<PartInputItem>();
|
parts = new BindingList<PartInputItem>();
|
||||||
bins = new BindingList<BinInputItem>();
|
bins = new BindingList<BinInputItem>();
|
||||||
|
|
||||||
dataGridView1.DataSource = parts;
|
itemBindingSource.DataSource = parts;
|
||||||
dataGridView2.DataSource = bins;
|
binInputItemBindingSource.DataSource = bins;
|
||||||
UpdateRunButtonState();
|
UpdateRunButtonState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user