/// <summary>
        /// Builds the communication folder local.
        /// </summary>
        /// <returns>The communication folder local.</returns>
        /// <param name="selectedIconArgs">Selected icon arguments.</param>
        public IconImage BuildCommunicationFolderLocal(ArgsSelectedIcon selectedIconArgs)
        {
            var item = new Storage.CommunicationIcon()
            {
                Tag                  = IconRoles.GetRoleInt(IconRoles.Role.Folder),
                Text                 = selectedIconArgs.Name,
                Local                = true,
                IsStoredInFolder     = false,
                IsPinned             = false,
                FolderContainingIcon = "",
                ResourceLocation     = Constants.LanguageSettings.ResourcePrefixPng + selectedIconArgs.ImageSource + Constants.LanguageSettings.ResourceSuffixPng,
                Scale                = 1f,
                X = -1,
                Y = -1
            };

            return(BuildCommunicationFolderLocal(item));
        }
Esempio n. 2
0
        /// <summary>
        /// Add icon from local
        /// </summary>
        /// <param name="obj">Object.</param>
        void SettingsSelectInteraction(ArgsSelectedIcon obj)
        {
            canvasRef.Icons.Add(App.ImageBuilderInstance.BuildCommunicationIconLocal(obj));

            canvasRef.Controller.PromptResave();
        }