Esempio n. 1
0
        private void CreateProject()
        {
            string untappdUserName = String.Empty;

            if (!interactionRequestService.AskReplaceText(Properties.Resources.UntappdUserNameCaption, ref untappdUserName))
            {
                return;
            }

            untappdService.Create(untappdUserName);
            moduleManager.LoadModule(typeof(MainModule).Name);
            ActivateView(RegionNames.RootRegion, typeof(Main));
            interactionRequestService.ClearMessageOnStatusBar();
        }
Esempio n. 2
0
        private void RenameProject()
        {
            string name    = untappdService.GetUntappdUserName();
            string oldName = name;

            if (interactionRequestService.AskReplaceText(Properties.Resources.RenameProject, ref name) && !oldName.Equals(name))
            {
                untappdService.UpdateUntappdUserName(name);
            }
        }