/*private class ListComparer : IComparer * { * public int Compare(object x, object y) * { * return ((ListViewItem)x).Index - ((ListViewItem)y).Index; * } * }*/ public FriendsListForm() { Instance = this; InitializeComponent(); // listview.ListViewItemSorter = new ListComparer(); // listview.Sorting = SortOrder.Ascending; listview.SmallImageList = MainForm.Instance.imagelist_listbox; listview.LargeImageList = MainForm.Instance.imagelist_listbox; Utils.SetDoubleBuffering(listview); }
private void FriendsSummaryForm_FormClosed(object sender, FormClosedEventArgs e) { Instance = null; }