What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Outdated code?

Jacan

New Member
Joined
Sep 30, 2011
Messages
489
Reaction score
0
I get this error now when loading my old PB profile, the code is suppose to grab settings from another PB profile.. can tip $20 paypal for solution.. Thanks in advance.

Err: Declaration:(private void LoadCharacterSettings()
{
string CharacterSettingsPath = Path.Combine(Logging.ApplicationPath,
string.Format("Settings\\ProfessionBuddy\\{0}[{1}-{2}].xml", "turtlefarm",
Me.Name,
Lua.GetReturnVal<string>("return GetRealmName()", 0)));
if (File.Exists(CharacterSettingsPath))
{
using (System.Xml.XmlReader reader = System.Xml.XmlReader.Create(CharacterSettingsPath))
{
try
{
var serializer = new System.Runtime.Serialization.DataContractSerializer(typeof(Dictionary<string, object>));
MSettings = (Dictionary<string, object>)serializer.ReadObject(reader);
}
catch (Exception ex)
{
slog(ex.ToString());
}
}
}
}
)
Compile Error : 'Styx.Common.Logging' does not contain a definition for 'ApplicationPath'

Err: Declaration:(private void slog(string format, params object[] args)
{
Logging.Write(Color.Crimson, "[UF]: " + format, args);
})
Compile Error : 'System.Windows.Media.Color' does not contain a definition for 'Crimson'
 
you wanna do something like i have here.
Code:
    private static string SavePath
        {
            get { return string.Format("{0}\\Settings\\MrGearBuyerSettings_{1}.xml", [B]AppDomain.CurrentDomain.BaseDirectory[/B], StyxWoW.Me.Name); }
        }
 
Back
Top