Пример #1
0
        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (!(treeView1.SelectedNode is BYAML.PathPoint))
            {
                return;
            }

            BYAML.PathPoint pt = (BYAML.PathPoint)treeView1.SelectedNode;

            if (e.Node.Level != 0)
            {
                BYAMLEditor.Open(pt);
            }
        }
Пример #2
0
        public void Open(BYAML.PathPoint obj)
        {
            currentEntry = obj;

            textBox1.Text = currentEntry.Text;

            if (currentEntry != null)
            {
                numericUpDown2.Value = (decimal)currentEntry.translate.X;
                numericUpDown3.Value = (decimal)currentEntry.translate.Y;
                numericUpDown1.Value = (decimal)currentEntry.translate.Z;

                propertyGrid1.SelectedObject = currentEntry;
            }
        }