Beispiel #1
0
    private void UpdateIbItemStyleInfo(IbConfig originalConfig, string ibItemStyleInfo)
    {
        TextReader      reader = new StringReader(ibItemStyleInfo);
        XmlDataDocument doc    = new XmlDataDocument();

        doc.DataSet.ReadXmlSchema(SystemConfig.Current.GameSettingDir + "ibshop\\ibItemStyle.xsd");
        doc.Load(reader);

        originalConfig.ItemStyleList.Clear();
        DataTable itemStyleTable = doc.DataSet.Tables[0];

        foreach (DataRow row in itemStyleTable.Rows)
        {
            IbItemStyle itemStyle = new IbItemStyle(Encoding.UTF8.GetString(Convert.FromBase64String(row[1] as string)));
            itemStyle.Id = (int)row[0];

            originalConfig.ItemStyleList.Add(itemStyle);
        }
    }
Beispiel #2
0
    private void UpdateIbItemStyleInfo(IbConfig originalConfig, string ibItemStyleInfo)
    {
        TextReader reader = new StringReader(ibItemStyleInfo);
        XmlDataDocument doc = new XmlDataDocument();
        doc.DataSet.ReadXmlSchema(SystemConfig.Current.GameSettingDir + "ibshop\\ibItemStyle.xsd");
        doc.Load(reader);

        originalConfig.ItemStyleList.Clear();
        DataTable itemStyleTable = doc.DataSet.Tables[0];
        foreach (DataRow row in itemStyleTable.Rows)
        {
            IbItemStyle itemStyle = new IbItemStyle(Encoding.UTF8.GetString(Convert.FromBase64String(row[1] as string)));
            itemStyle.Id = (int)row[0];

            originalConfig.ItemStyleList.Add(itemStyle);
        }
    }