Exemple #1
0
        public MainWindow()
        {
            // Initilalize Inline Dialog
            d = InlineDialog.Instance();

            LocalizeDictionary.Instance.Culture = new CultureInfo(App.locale);

            // Initialize Mod Manager
            if (ModManager.CheckForSettings())
            {
                Mods = new ModManager();
            }
            else
            {
                MessageBox.Show(Helpers._("Dialog.Welcome"),
                                Helpers._("Dialog.WelcomeTitle"));
                Mods = new ModManager(GetPSO2Dir());
            }

            InitializeComponent();

            Mods.OnSelectionChanged += ModChanged;

            ValidateUrlInput();

            // For some reason RegisterJsObject doesn't work so we're stream a json object
            // to the page title, once we have a new download action.
            Browser.TitleChanged += Browser_TitleChanged;
            Browser.BrowserSettings.AcceptLanguageList = App.locale;
            Browser.Address = String.Format(CultureInfo.InvariantCulture, "http://pso2mod.com/?app={0}&lang={1}", "true", App.locale.Substring(0, 2));
        }
        public MainWindow()
        {
            // Initilalize Inline Dialog
            d = InlineDialog.Instance();

            LocalizeDictionary.Instance.Culture = new CultureInfo(App.locale);

            // Initialize Mod Manager
            if (ModManager.CheckForSettings())
            {
                Mods = new ModManager();
            }
            else
            {
                MessageBox.Show("This is a very early version of the mod tool," +
                                "so it looks like crap, and while it shouldn't, it could" +
                                "make your pso2 explode in a thousand darkers.\n Also remember" +
                                "that Sega doesn't approve of mods, so don't come crying to" +
                                "Rupi if they ban you.  You've been warmed \n -Rupi ",
                                "Important!");
                Mods = new ModManager(GetPSO2Dir());
            }

            InitializeComponent();

            Mods.OnSelectionChanged += ModChanged;

            ValidateUrlInput();

            // For some reason RegisterJsObject doesn't work so we're stream a json object
            // to the page title, once we have a new download action.
            Browser.TitleChanged += Browser_TitleChanged;
            Browser.BrowserSettings.AcceptLanguageList = App.locale;
            Browser.Address = String.Format(CultureInfo.InvariantCulture, "http://pso2mod.com/?app={0}&lang={1}", "true", App.locale.Substring(0, 2));
        }