首页上一页 1  下一页尾页 1 条记录 1/1页
        二维数组保存到XML文件中
                 	
                        发表在C#答疑区
                        2023-06-08                         悬赏:30 学分
悬赏:30 学分                        
                    		
                                                                            	
                        
                        
                    
                     悬赏:30 学分
悬赏:30 学分                        
                    		
                                                                            	
                        
                        
                    
                    	是否精华
                    	是
                    	否
                    
                    
                    
                            版块置顶:
                            是
                            否
                        
                    
                           将二维数组【序号,文本,颜色】保存到XML文件中,怎么写?
例如 public ButtonStyle[] PlcStyles
{
get { return m_styles; }
set { m_styles = value; }
}
public class ButtonStyle
{
int m_value = 0;
String m_text = "@";
Color m_clrBK = Color.Transparent;
[XmlElement]
public int Value
{
get { return m_value; }
set { m_value = value; }
}
[XmlElement]
public Color BackColor
{
get { return m_clrBK; }
set { m_clrBK = value; }
}
[XmlElement]
public String Text
{
get { return m_text; }
set { m_text = value; }
}
public ButtonStyle()
{
}
public override string ToString()
{
return m_text + "," + m_value + "," + m_clrBK;
}
internal void FromString(string val)
{
throw new NotImplementedException();
}
}
将数组中是内容保存到XML文件中,
                
        	
        
        
    例如 public ButtonStyle[] PlcStyles
{
get { return m_styles; }
set { m_styles = value; }
}
public class ButtonStyle
{
int m_value = 0;
String m_text = "@";
Color m_clrBK = Color.Transparent;
[XmlElement]
public int Value
{
get { return m_value; }
set { m_value = value; }
}
[XmlElement]
public Color BackColor
{
get { return m_clrBK; }
set { m_clrBK = value; }
}
[XmlElement]
public String Text
{
get { return m_text; }
set { m_text = value; }
}
public ButtonStyle()
{
}
public override string ToString()
{
return m_text + "," + m_value + "," + m_clrBK;
}
internal void FromString(string val)
{
throw new NotImplementedException();
}
}
将数组中是内容保存到XML文件中,

 
	
                                                 VIP会员
VIP会员 购物车
购物车

 私信
                         私信 
                     发表新帖
发表新帖 立即签到
立即签到 
        		  
        		 
         		 关注
关注
                  回复
 回复 支持(
                	支持( 反对(
                    反对(
 
               			  
                







 
                     
                     
					 
						 
						 
						 
						