예제 #1
0
        public MainWindow()
        {
            Configuration.Load(false);

            // choose language
            if (!LanguageWindow.ShowSelection(Configuration.Language))
            {
                Close();
                return;
            }

            if (Configuration.Language != Localization.LanguageIndex)
            {
                Configuration.Language = Localization.LanguageIndex;
            }
            StartTroopChange.Load();
            ResourceChange.Load();
            Version.AddExternalChanges();

            // init main window
            InitializeComponent();

            // set title
            this.Title = string.Format("{0} {1}", Localization.Get("Name"), Version.PatcherVersion);

            // set search path in ui
            SetBrowsePath();

            SetLocalizedUIElements();
            DisplayLicense();
        }
 static void Main(string[] args)
 {
     Configuration.Load();
     StartTroopChange.Load();
     ResourceChange.Load();
     Version.AddExternalChanges();
     ResolvePath();
     ResolveArgs(args);
     SilentInstall();
 }