Example #1
0
 public FilterViewListView(Yomigana yomigana)
     : base()
 {
     this.yomigana      = yomigana;
     this.FullRowSelect = true;
     this.Dock          = DockStyle.Fill;
     this.HeaderStyle   = ColumnHeaderStyle.None;
     this.View          = System.Windows.Forms.View.Details;
     this.Columns.Add("Name");
     this.Columns.Add("");
     this.ShowItemToolTips     = true;
     this.Columns[1].TextAlign = HorizontalAlignment.Right;
     this.Resize += new System.EventHandler(this.listView2_Resize);
     this.SelectedIndexChanged += new EventHandler(FilterViewListView_SelectedIndexChanged);
     this.GridLines             = false;
     this.DoubleBuffered        = true;
     this.SelectEvent          += (c, vals) =>
     {
         if (SupplessFilterViewSelectChangeEvent)
         {
             SupplessFilterViewSelectChangeEvent = false;
             return;
         }
         Controller.CreatePlaylist(GetQueryString());
     };
     this.MouseClick += (oo, e) =>
     {
         if (e.Button == System.Windows.Forms.MouseButtons.Right)
         {
             SupplessFilterViewSelectChangeEvent = true;
         }
     };
 }
Example #2
0
 public YomiCorrect(string src, Yomigana yomigana)
 {
     this.yomigana = yomigana;
     this.src      = src;
     InitializeComponent();
     label1.Text   = "[" + yomigana.GetLeadingChars(src) + "] " + src;
     textBox1.Text = yomigana.GetFirst(src).ToString();
 }
Example #3
0
        public CombinationFilterList(string tag, Yomigana yomigana)
        {
            BindedTag = tag;
            Yomigana  = yomigana;
            // Disable Smooth Scroll
            SystemParametersInfo(SPI_SETLISTBOXSMOOTHSCROLLING, 0, IntPtr.Zero, 0);

            SelectedIndexChanged += (_, __) => { DeliverUpdateToChild(false); };
            DoubleClick          += (_, __) => { DeliverUpdateToChild(true); };
            SetItems();
        }