Ejemplo n.º 1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            if (SaveDataDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }

            string path = SaveDataDialog.FileName;

            Logger.Write(path);


            String lines = "" + trajectory.Count;

            for (int i = 0; i < trajectory.Count; i++)
            {
                lines += "\n" + trajectory[i].ToString(" ");
            }

            File.WriteAllText(path, lines);
        }
Ejemplo n.º 2
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            if (SaveDataDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }

            string path = SaveDataDialog.FileName;

            Logger.Write(path);


            String lines = "" + nodes.Count;

            foreach (Node node in nodes)
            {
                lines += "\n" + node.GlobalToString(" ");
            }

            File.WriteAllText(path, lines);
        }