相关疑难解决方法(0)

删除Windows窗体中的标题栏

如何删除窗体顶部的蓝色边框?(我完全不知道它的名字.)

.net c# winforms

69
推荐指数
6
解决办法
14万
查看次数

按属性重新匹配对象列表

我有一个解析方法XML:

public static List<Profile> Parse XML(string Document)
{
    List<Profile> Result = new List<Profile>();     
    doc = XDocument.Load(Document);

    Resoults = (from n in doc.Descendants("level")
               select new Profile()
               {
                   CurrentID = int.Parse(n.Attribute("CurrentID").Value),    
                   Location = (from l in n.Element("ID").Elements("ID")
                              select new Location()
                              {
                                   id = (int)(l.Attribute("id")),
                                   x = (Single)l.Attribute("x"),
                                   y = (Single)l.Attribute("y"),
                                   z = (Single)l.Attribute("z")
                              }).ToList(),    
                   Bank = (from l in doc.Descendants("Banker")
                              select new Banker()
                              {
                                   BankID = (int)(l.Attribute("id")),
                                   BankX = (Single)(l.Attribute("x")),
                                   BankY = (Single)(l.Attribute("y")),
                                   BankZ = (Single)(l.Attribute("z"))
                              }).ToList(),    
                   Vendor = (from …
Run Code Online (Sandbox Code Playgroud)

c# list

3
推荐指数
1
解决办法
54
查看次数

标签 统计

c# ×2

.net ×1

list ×1

winforms ×1