示例#1
0
文件: VForm.cs 项目: windrobin/kumpro
            public int Compare(object vx, object vy)
            {
                Ent x = ((ListViewItem)vx).Tag as Ent;
                Ent y = ((ListViewItem)vy).Tag as Ent;

                bool fx = x != null;
                bool fy = y != null;

                if (!fx || fx != fy)
                {
                    return(ord * fx.CompareTo(fy));
                }

                return(ord * fn(x, y));
            }
示例#2
0
文件: VForm.cs 项目: windrobin/kumpro
 private void lvF_ItemActivate(object sender, EventArgs e)
 {
     foreach (ListViewItem lvi in lvF.SelectedItems)
     {
         Ent ent = (Ent)lvi.Tag;
         if (ent.IsDir)
         {
             Open(ent.FullUrl);
             break;
         }
         else
         {
             Process.Start(ent.FullUrl.ToString());
         }
     }
 }