예제 #1
0
 public LoginControl(params object[] data)
 {
     //Get the language
     UserInterfaceCore.SetResource(data[0].ToString());
     //Remove resource dictionaries
     Resources.Clear();
     Resources.MergedDictionaries.Clear();
     //Set the correct resource dictionary
     Resources.MergedDictionaries.Add(UserInterfaceCore.MainLanguage);
 }
예제 #2
0
        public FrameworkElement Run(params object[] data)
        {
            //Create the main view
            UserInterfaceCore.HolderPage = new HolderPage();

            //Get the language
            UserInterfaceCore.SetResource(data[0].ToString());
            StaticVars.IcyWindLocation = System.IO.Path.GetDirectoryName((string)data[1]);

            UserInterfaceCore.Focus = () => FlashWindow.SetForegroundWindow((IntPtr)data[2]);
            UserInterfaceCore.Flash = () => FlashWindow.Flash((IntPtr)data[2], 20);

            //Look for the latest system yaml files
            RiotUpdateHandler.GetLatestSystemYaml();
            //RiotUpdateHandler.GetLatestSystemYamlPbe();

            //Change the view the main view has
            UserInterfaceCore.ChangeView(typeof(LoginPage));
            //Return the main view to base application
            return(UserInterfaceCore.HolderPage);
        }