Esempio n. 1
0
        public void diff(Particle p2)
        {
            string[] arr2 = p2.ParticleArr;
            Debug.WriteLine("Did not find these in " + Name);
            for (int j = 0; j < arr2.Count(); j++)
            {
                string line = arr2[j];
                line = line.Trim();

                // check if this line is just blank. Also ignore child reference lines.
                if (line == "" || line.Contains("string m_ChildRef = "))
                {
                    continue;
                }

                if (!containsTrimmed(line))
                {
                    Debug.WriteLine(line);
                }
            }
        }
Esempio n. 2
0
        private void diff_Click(object sender, EventArgs e)
        {
            OpenFileDialog fd = new OpenFileDialog();
            fd.InitialDirectory = Path.Combine(currAddon.ContentPath, "particles");
            fd.Title = "First particle:";
            DialogResult res = fd.ShowDialog();
            Particle ps1 = null;
            Particle ps2 = null;
            if (res == DialogResult.OK)
            {
                string path = fd.FileName;
                ps1 = new Particle(path);
            }

            fd.Title = "Second particle:";
            res = fd.ShowDialog();
            if (res == DialogResult.OK)
            {
                string path = fd.FileName;
                ps2 = new Particle(path);
            }
            ps1.diff(ps2);
        }