Example #1
0
        public override void load(StreamReader reader, CMyPointFactory factory)
        {
            reader.ReadLine();
            string line = reader.ReadLine();

            string[] split = line.Split(new Char[] { ' ', ',', '(', ')', '[', ']', '\n' });
            r        = Convert.ToInt32(split[2]);
            x        = Convert.ToInt32(split[5]);
            y        = Convert.ToInt32(split[6]);
            ObjColor = Color.FromName(split[11]);
        }
Example #2
0
        public override void load(StreamReader reader, CMyPointFactory factory)
        {
            string line = reader.ReadLine();

            string[] split = line.Split(new Char[] { ' ', ',', '(', ')', '\n' });
            count = Convert.ToInt32(split[3]);
            group = new CPoint[count];
            for (int i = 0; i < count; i++)
            {
                line     = reader.ReadLine();
                group[i] = factory.createPoint(line);
                group[i].load(reader, factory);
            }
        }
Example #3
0
        public void loadFromFile(string file)
        {
            StreamReader reader = new StreamReader(file, System.Text.Encoding.Default);
            string       line;

            line = reader.ReadLine();
            string[] split = line.Split(new Char[] { ' ', ',', '(', ')', '\n' });
            Count = Convert.ToInt32(split[3]);
            arr   = new CPoint[Count];
            CMyPointFactory factory = new CMyPointFactory();

            for (int i = 0; i < Count; i++)
            {
                line   = reader.ReadLine();
                arr[i] = factory.createPoint(line);
                arr[i].load(reader, factory);
            }
            reader.Close();
            notifyEveryone();
        }
Example #4
0
 public CreateCommand()
 {
     factory = new CMyPointFactory();
     p       = null;
 }
Example #5
0
 public override void load(StreamReader reader, CMyPointFactory factory)
 {
     point.load(reader, factory);
 }
Example #6
0
 virtual public void load(StreamReader reader, CMyPointFactory factory)
 {
 }