Exemple #1
0
 private static TextBoxInfo parseRawTextBoxInfo(RawControlInfo rawInfo)
 {
     TextBoxInfo textBoxInfo = new TextBoxInfo();
     textBoxInfo.groupNum = Parser.parseGroupNum(rawInfo.infoStr);
     textBoxInfo.groupName = Parser.parseGroupName(rawInfo.infoStr);
     textBoxInfo.zindex = Parser.parseZIndex(rawInfo.imageTag);
     textBoxInfo.fadeIn = Parser.parseFadeIn(rawInfo.infoStr);
     textBoxInfo.fadeOut = Parser.parseFadeOut(rawInfo.infoStr);
     textBoxInfo.location = Parser.parseLocation(rawInfo.imageTag);
     textBoxInfo.size = getTextBoxSize(Parser.parsePath(rawInfo.imageTag));
     textBoxInfo.text = Parser.parseText(rawInfo.infoStr);
     return textBoxInfo;
 }
Exemple #2
0
 private static PictureBoxInfo parseRawPictureBoxInfo(RawControlInfo rawInfo)
 {
     PictureBoxInfo pictureBoxInfo = new PictureBoxInfo();
     pictureBoxInfo.groupNum = Parser.parseGroupNum(rawInfo.infoStr);
     pictureBoxInfo.groupName = Parser.parseGroupName(rawInfo.infoStr);
     pictureBoxInfo.zindex = Parser.parseZIndex(rawInfo.imageTag);
     pictureBoxInfo.fadeIn = Parser.parseFadeIn(rawInfo.infoStr);
     pictureBoxInfo.fadeOut = Parser.parseFadeOut(rawInfo.infoStr);
     pictureBoxInfo.location = Parser.parseLocation(rawInfo.imageTag);
     string path = Parser.parsePath(rawInfo.imageTag);
     pictureBoxInfo.path = String.Format("{0}/orig/{1}",Path.GetDirectoryName(path),Path.GetFileName(path));
     pictureBoxInfo.size = Image.FromFile(String.Format("{0}/images/{1}",projectPath,Path.GetFileName(path))).Size;
     return pictureBoxInfo;
 }