コード例 #1
0
        /// <summary>
        /// "删除此快捷方式"点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void stripItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            if (e.ClickedItem.Text == "删除此快捷方式")
            {
                Console.WriteLine(e.ClickedItem.Text + " : " + listView1.SelectedItems[0].Text);

                JObject jobject = JsonHelper.readJson();
                JsonHelper.DeleteListviewJson(jobject, listView1.SelectedItems[0].Text, 0);
                LoadImageList();
            }
        }