public baseGruppForm( Form parent, FlikTyp fliktyp ) : base(parent, fliktyp) { InitializeComponent(); lv.MouseUp += new MouseEventHandler(lv_MouseUp); lv.SelectedIndexChanged += new EventHandler(lv_SelectedIndexChanged); lv.ColumnClick +=new ColumnClickEventHandler(lv_ColumnClick); scrThumb.Scroll += new ScrollEventHandler(scrThumb_Scroll); var lviComp = new Util.ListViewItemComparer {ColumnIndex = Global.Preferences.SortOrderLastName ? 0 : 1}; lv.ListViewItemSorter = lviComp; lv.KeyPress +=lv_KeyPress; }
private FSelectPersons() { InitializeComponent(); var lviComp = new Util.ListViewItemComparer { ColumnIndex = Global.Preferences.SortOrderLastName ? 1 : 2 }; lvPers.ListViewItemSorter = lviComp; }