Esempio n. 1
0
 private void taskbarButton_JumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
 {
     removedListBox.BeginUpdate();
     removedListBox.Items.Clear();
     foreach (C1JumpItem item in e.RemovedItems)
     {
         removedListBox.Items.Add(JumpItemToString(item));
     }
     removedListBox.EndUpdate();
 }
Esempio n. 2
0
        private void OnJumpItemsRemoved(object sender, JumpItemsRemovedEventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("{0} Jump Items Removed by the user:\n", e.RemovedItems.Count);
            for (int i = 0; i < e.RemovedItems.Count; ++i)
            {
                sb.AppendFormat("{0}\n", e.RemovedItems[i]);
            }

            MessageBox.Show(sb.ToString());
        }
Esempio n. 3
0
        static void list_JumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
        {
            foreach (JumpTask task in e.RemovedItems)
            {
                CommandArguments args = new CommandArguments(task.Arguments.Split(' '));

                if (Globals.Sites.Count(s => s.UrlAsString == args.Url.OriginalString) > 0)
                {
                    Globals.Sites.RemoveAll(s => s.UrlAsString == args.Url.OriginalString);
                    LogUtil.LogMessage($"Removed site '{args.Url}' from Recent Sites via Taskbar Jumplist", LogLevel.Information);
                }

                if (Globals.Tenants.Count(t => t.AdminUrlAsString == args.Url.OriginalString) > 0)
                {
                    Globals.Tenants.RemoveAll(t => t.AdminUrlAsString == args.Url.OriginalString);
                    LogUtil.LogMessage($"Removed tenant '{args.Url}' from Recent Tenants via Taskbar Jumplist", LogLevel.Information);
                }
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Pievieno ignorētajiem kanāliem tos, kurus dzēsa lietotājs kopš iepriekšējām kanālu saraksta izmaiņām.
        /// </summary>
        private void jumpList_JumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
        {
            var ignoredList = new List <string>(ignoredChannels.Length + e.RemovedItems.Count);        // Visu dzēsto kanālu identifikatori.

            ignoredList.AddRange(ignoredChannels);
            foreach (JumpTask item in e.RemovedItems)
            {
                string[] id = item.Arguments.Split(ChannelIdSeparator);
                // Dinamiskā raidstacija pati dzēš savus kanālus, ..
                DynamicStation station = Stations[id[0]] as DynamicStation;
                if (station != null)
                {
                    station.RemoveChannel(uint.Parse(id[1]));
                }
                else
                {
                    // .. pārējos kanālus iegaumē.
                    ignoredList.Add(item.Arguments);
                }
            }
            Settings.Default.IgnoredChannels = String.Join(ChannelSeparator, ignoredList);
            ignoredChannels = ignoredList.ToArray();
        }
 private void CurrentJumpListOnJumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs jumpItemsRemovedEventArgs)
 {
 }
Esempio n. 6
0
 private void OnJumpItemsRemoved(object sender, JumpItemsRemovedEventArgs e)
 {
 }
Esempio n. 7
0
 private void JumpList_JumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
 {
 }
Esempio n. 8
0
 private void JumpList_JumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
 {
     throw new NotImplementedException();
 }
Esempio n. 9
0
 // Something isn't working right here... If the user dismissed the item in the jumplist we should respect that and mark it as read.
 // In my testing I'm not sure why this event isn't getting raised.  I'm opening a bug to look into this later.
 private void _OnJumpItemsRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
 {
     foreach (var item in from removedItem in e.RemovedItems where removedItem.CustomCategory == "Notifications" select removedItem)
     {
     }
 }
Esempio n. 10
0
 private void OnJumpListItemRemovedByUser(object sender, JumpItemsRemovedEventArgs e)
 {
     // Item removed by user
 }