private static void AddGridY(ref List <Gcode> gcodeList) { GridYView GYV = new GridYView(); GridY GY = GYV.ShowWindow(); if (GY != null) { gcodeList.Add(GY); //gcodeList.Insert(0, GY); } }
private void OkButton_Click(object sender, RoutedEventArgs e) { xStart = HelperClass.ConvertToDouble(xStartTextBlock.Text); yStart = HelperClass.ConvertToDouble(yStartTextBlock.Text); hitsDistanceX = HelperClass.ConvertToDouble(hitsDistanceXTextBlock.Text); numberOfPunchesX = HelperClass.ConvertToInt(numberOfPunchesXTextBlock.Text); hitsDistanceY = HelperClass.ConvertToDouble(hitsDistanceYTextBlock.Text); numberOfPunchesY = HelperClass.ConvertToInt(numberOfPunchesYTextBlock.Text); toolSize = new Size(HelperClass.ConvertToDouble(toolWidthTextBox.Text), HelperClass.ConvertToDouble(toolHeightTextBox.Text)); tool = HelperClass.GetToolFromComboBox(cmbTool, toolSize); gridY = new GridY(xStart, yStart, hitsDistanceX, numberOfPunchesX, hitsDistanceY, numberOfPunchesY, tool, false); this.Close(); }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Unknown1", true, out subEle); subEle.Value = Unknown1.ToHex(); ele.TryPathTo("NavigationMesh", true, out subEle); NavigationMesh.WriteXML(subEle, master); ele.TryPathTo("Location", true, out subEle); Location.WriteXML(subEle, master); ele.TryPathTo("Grid/X", true, out subEle); subEle.Value = GridX.ToString(); ele.TryPathTo("Grid/Y", true, out subEle); subEle.Value = GridY.ToString(); ele.TryPathTo("Unknown2", true, out subEle); subEle.Value = Unknown2.ToHex(); }