private void Bill_Master_Load(object sender, EventArgs e)
{
BillDataGrid.SelectionChanged += BillDataGrid_SelectionChanged;
BillDataGrid.ClearSelection();
try
{
BillDataGrid.CurrentCell = BillDataGrid.Rows[0].Cells[0];
}
catch { }
UpdateFormFields();
#region Close if not checked out
/*
string Message;
if (!DataList.PartCheckOutStatus(gid_txt.Text, parent_txt.Text, parentrev_txt.Text, out Message))
{
MessageBox.Show("Part must be checked out by selected Group ID to continue.", "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
this.Close();
}
else
{
if (Message != "Checked Out by GroupID")
{
MessageBox.Show("Part must be checked out by selected Group ID to continue.\n\n" + Message, "Warning!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
this.Close();
}
}*/
#endregion
FillRawMenu();
if (BillDataGrid.Rows.Count == 0)
addraw.Enabled = false;
EnableNew.Enabled = true;
}