Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ReadConfig()
- {
- TextBlock block = TextBlockUtils.LoadFromRealFile(Application.StartupPath + @"\" + configFile);
- if (block == null) return;
- TextBlock formBlock = block.FindChild("form");
- if (formBlock != null)
- {
- this.Width = int.Parse(formBlock.GetAttribute("width"));
- this.Height = int.Parse(formBlock.GetAttribute("height"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement