private void comboMaterialLocation_SelectedIndexChanged(object sender, EventArgs e) { try { Shelf cml = comboMaterialLocation.SelectedItem as Shelf; if (cml.ShelfId == 0) { if (openFormSH) { openFormMT = false; MaterialLocation locationForm = new MaterialLocation(); locationForm.ShowDialog(); BindMaterialType(new MaterialType() { MaterialTypeId = 0, _MaterialType = "Other" }); } else { openFormSH = true; } } } catch (Exception) { } }
private void comboMaterialLocation_SelectedIndexChanged(object sender, EventArgs e) { Shelf cml = comboMaterialLocation.SelectedItem as Shelf; if (cml.Location == "Other") { if (openFormSH) { openFormSH = false; MaterialLocation locationForm = new MaterialLocation(); locationForm.ShowDialog(); BindShelf(); } else { openFormSH = true; } } }
private void alterMaterialLocationToolStripMenuItem_Click(object sender, EventArgs e) { Materials_Forms.MaterialLocation alterMaterialLocation = new Materials_Forms.MaterialLocation(); alterMaterialLocation.ShowDialog(); }