private void simpleButton1_Click(object sender, EventArgs e) { wireType wiretype = new wireType(wirel); if (wiretype.ShowDialog() == DialogResult.OK) { WireCategory wirewire = new WireCategory(); wirewire.WireType = wiretype.WireType; wirewire.WireR = Convert.ToDouble(wiretype.WireR); wirewire.WireTQ = Convert.ToDouble(wiretype.WireTQ); wirewire.WireGNDC = Convert.ToDouble(wiretype.WireGNDC); wirewire.WireChange = Convert.ToInt32(wiretype.WireChange); //wirewire.WireLevel = wirel; wirewire.WireLevel = wiretype.WireLevel; wirewire.SUID = Guid.NewGuid().ToString(); Services.BaseService.Create <WireCategory>(wirewire); } InitData(vri); }
private void simpleButton1_Click(object sender, EventArgs e) { wireType wiretype = new wireType(wirel); if (wiretype.ShowDialog()==DialogResult.OK) { WireCategory wirewire = new WireCategory(); wirewire.WireType = wiretype.WireType; wirewire.WireR = Convert.ToDouble(wiretype.WireR); wirewire.WireTQ = Convert.ToDouble(wiretype.WireTQ); wirewire.WireGNDC = Convert.ToDouble(wiretype.WireGNDC); wirewire.WireChange = Convert.ToInt32(wiretype.WireChange); //wirewire.WireLevel = wirel; wirewire.WireLevel = wiretype.WireLevel; wirewire.SUID = Guid.NewGuid().ToString(); Services.BaseService.Create<WireCategory>(wirewire); } InitData(vri); }