Esempio n. 1
0
            public static void Load(string file)
            {
                _data = new FreelancerModStudio.Data.Template();

                try
                {
                    _data.Load(file);
                    Data.SetSpecialFiles();
                }
                catch (Exception ex)
                {
                    Exceptions.Show(string.Format(Strings.TemplateLoadException, Resources.TemplatePath), ex);
                    Environment.Exit(0);
                }
            }
Esempio n. 2
0
            public static void Load()
            {
                string File = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Template.xml");

                data = new FreelancerModStudio.Data.Template();

                try
                {
                    data.Load(File);
                }
                catch (Exception ex)
                {
                    Helper.Exceptions.Show(ex);
                    Environment.Exit(0);
                }
            }