Beispiel #1
0
 private void ReadLineII(System.Windows.Forms.Control par, ReadXml read, string path)
 {
     foreach (ReadXml r in read.ReadList(path))
     {
         var con = new LineII();
         con.Left   = Convert.ToInt32(r.Read("left"));
         con.Top    = Convert.ToInt32(r.Read("top"));
         con.Width  = Convert.ToInt32(r.Read("width"));
         con.Height = Convert.ToInt32(r.Read("height"));
         par.Controls.Add(con);
     }
 }
Beispiel #2
0
 private void ReadText(System.Windows.Forms.Control par, ReadXml read, string path)
 {
     foreach (ReadXml r in read.ReadList(path))
     {
         var con = new TextLabel();
         con.Left   = Convert.ToInt32(r.Read("left"));
         con.Top    = Convert.ToInt32(r.Read("top"));
         con.Width  = Convert.ToInt32(r.Read("width"));
         con.Height = Convert.ToInt32(r.Read("height"));
         con.Font   = new Font(r.Read("font_name"), Convert.ToSingle(r.Read("font_size")), (FontStyle)Convert.ToInt32(r.Read("font_style")));
         con.Text   = r.Read("text");
         par.Controls.Add(con);
     }
 }