Beispiel #1
0
        static MasterPieceSupplyDataProvider()
        {
            var path = Path.Combine(Environment.CurrentDirectory, "Plugins\\ExBuddy\\Data\\" + MsdFileName);

            if (File.Exists(path))
            {
                DataFilePath = path;
            }
            else
            {
                DataFilePath =
                    Directory.GetFiles(PluginManager.PluginDirectory, "*" + MsdFileName, SearchOption.AllDirectories).FirstOrDefault();
            }

            Instance = new MasterPieceSupplyDataProvider(DataFilePath);
        }
		static MasterPieceSupplyDataProvider()
		{
			var path = Path.Combine(Environment.CurrentDirectory, "Plugins\\ExBuddy\\Data\\msd.xml");

			if (File.Exists(path))
			{
				DataFilePath = path;
			}
			else
			{
				DataFilePath =
					Directory.GetFiles(PluginManager.PluginDirectory, "*msd.xml", SearchOption.AllDirectories).FirstOrDefault();
			}

			Instance = new MasterPieceSupplyDataProvider(DataFilePath);
		}