Ejemplo n.º 1
0
        private async Task RenameAsync()
        {
            string newName = await Dialogs.AskStringInputAsync("Rename", "Name", DisplayName);

            if (!string.IsNullOrEmpty(newName))
            {
                _connectedEntity.DisplayName = newName;
                ConnectedAccount.Save();
            }
        }
Ejemplo n.º 2
0
        private async Task AddRootFolderAsync()
        {
            string name = await Dialogs.AskStringInputAsync("Add folder", "Name");

            if (name == null)
            {
                return;
            }

            EventLog.LogEvent("addRootFolder", "name: {name}", name);

            ConnectedAccount.RootFolder.Children.Add(new ConnectedFolder {
                DisplayName = name
            });
            ConnectedAccount.Save();
        }