Exemplo n.º 1
0
        // textChanged: // Validate inputs: any one of the user home locations should be empty or non-existing folders; Otherwise check whether other MULTITUDE profiles exist there and ask User whether we should manage them as well

        // Major event handler

        #region Overall UI
        // Initialize according to state
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Set home
            MULTITUDE.Class.Home home = (App.Current as App).CurrentHome;
            HomeLocationTextBox.Text = MULTITUDE.Class.Home.Location;
            if (home.Appellation != null)
            {
                AppellationTextBox.Text = home.Appellation;
            }
            if (home.Username != null)
            {
                UserIDTextBox.Text = home.Username;
            }
            if (home.Password != null)
            {
                PasswordTextBox.Password = home.Password.Content;
            }

            // Set VW
            MULTITUDE.Class.VirtualWorkspace vw = (Owner as VirtualWorkspaceWindow).CurrentState;
            WallpaperTextbox.Text = vw.BackgroundImageClue;
            RhythmTextbox.Text    = vw.BackgroundMelodyClue;

            // ... Other settings loading..
        }
Exemplo n.º 2
0
 internal void Update(MULTITUDE.Class.Home home)
 {
     ClueBrowserControl.Update(home);
 }