private void toolStripMenuItem1_Click(object sender, EventArgs e) { ItemQuery frmIQuery = new ItemQuery(); frmIQuery.MdiParent = this; frmIQuery.StartPosition = FormStartPosition.CenterScreen; frmIQuery.Show(); }
private void inventoryToolStripMenuItem_Click(object sender, EventArgs e) { ItemQuery itemQuery = new ItemQuery(); itemQuery.StartPosition = FormStartPosition.CenterScreen; itemQuery.MdiParent = this; itemQuery.Show(); }
private void btnItems_Click(object sender, EventArgs e) { ItemQuery frmIQuery = new ItemQuery(); frmIQuery.itemSelected = new ItemQuery.UpdateItem(UpdateProductEventHandler); Button button = frmIQuery.Controls.OfType <Button>().Where(btn => btn.Name == "btnNew").Single(); button.Enabled = false; Button btnAccept = frmIQuery.Controls.OfType <Button>().Where(btn => btn.Name == "btnAccept").Single(); btnAccept.Text = "Select"; frmIQuery.ShowDialog(); }