Exemplo n.º 1
0
        void EditSelectedProfileExecuted()
        {
            if (newProfileWindow != null)
            {
                newProfileWindow.Close();
            }

            newProfileWindow = new ProfileEditWindow(SelectedProfile);

            newProfileWindow.Show();
        }
Exemplo n.º 2
0
        void AddNewProfileExecuted()
        {
            //Create the new profile and if success, open the profile in a new window to edit
            var newProfile = new Profile()
            {
                ProfileName = "Empty Profile",
                DateCreated = DateTime.Now,
            };

            if (HostLists.HostLists.AddNewProfile(newProfile))
            {
                if (newProfileWindow != null)
                    newProfileWindow.Close();

                newProfileWindow = new ProfileEditWindow(newProfile);
                newProfileWindow.Show();
            }
        }
Exemplo n.º 3
0
        void AddNewProfileExecuted()
        {
            //Create the new profile and if success, open the profile in a new window to edit
            var newProfile = new Profile()
            {
                ProfileName = "Empty Profile",
                DateCreated = DateTime.Now,
            };

            if (HostLists.HostLists.AddNewProfile(newProfile))
            {
                if (newProfileWindow != null)
                {
                    newProfileWindow.Close();
                }

                newProfileWindow = new ProfileEditWindow(newProfile);
                newProfileWindow.Show();
            }
        }
Exemplo n.º 4
0
        void EditSelectedProfileExecuted()
        {
            if (newProfileWindow != null)
                newProfileWindow.Close();

            newProfileWindow = new ProfileEditWindow(SelectedProfile);

            newProfileWindow.Show();
        }