示例#1
0
        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;
        }
示例#2
0
 private FSelectPersons()
 {
     InitializeComponent();
     var lviComp = new Util.ListViewItemComparer { ColumnIndex = Global.Preferences.SortOrderLastName ? 1 : 2 };
     lvPers.ListViewItemSorter = lviComp;
 }