Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ButtonX buttonX = new ButtonX()
            {
                Name = "buttonX01"
            };

            GridX.SetRow(buttonX, 2);
            MessageBox.Show(GridX.GetRow(buttonX).ToString());
        }
Example #2
0
        private static void AddGridX(ref List <Gcode> gcodeList)
        {
            GridXView GXV = new GridXView();
            GridX     GX  = GXV.ShowWindow();

            if (GX != null)
            {
                gcodeList.Add(GX);

                //gcodeList.Insert(0, GX);
            }
        }
Example #3
0
        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);

            gridX = new GridX(xStart, yStart, hitsDistanceX, numberOfPunchesX, hitsDistanceY, numberOfPunchesY, tool, false);

            this.Close();
        }
Example #4
0
        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();
        }
    // If Equals() returns true for a pair of objects
    // then GetHashCode() must return the same value for these objects.

    public int GetHashCode(Product product)
    {
        return (GridX.GetHashCode() * 397) ^ GridY.GetHashCode
    }