private void Color_ComboBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            List <ListViewItems> items = listView.SelectedItems.Cast <ListViewItems>().ToList();

            ComboBox combobox = sender as ComboBox;

            foreach (ListViewItems item in items)
            {
                Console.WriteLine("{0} {1} {2}", item.SL, item.IMEI, item.Color);
            }
            if (combobox.SelectedIndex != -1 && listView.SelectedItems.Count > 0)
            {
                Console.WriteLine(listView.SelectedItems.Count);
                Console.WriteLine(combobox.SelectedIndex);

                for (int i = 0; i < listView.SelectedItems.Count; i++)
                {
                    ListViewItems item = items[i];
                    item.Color = color.Items.GetItemAt(color.SelectedIndex).ToString();

                    Console.WriteLine(item.Color);
                    listView.Items.Refresh();
                }
            }
        }
        private void sort()
        {
            try
            {
                //Console.WriteLine(listView.Items.Count);
                for (int i = 0; i < listView.Items.Count; i++)
                {
                    ListViewItems item = (ListViewItems)listView.Items[i];
                    //Console.WriteLine("selected index " + seletedindex + " IMEI " + item.IMEI);

                    //Console.WriteLine("OLD  {0} {1} {2}", item.SL, item.IMEI, item.Color);
                    item.SL = i + 1;
                    //Console.WriteLine("NEW  {0} {1} {2}", item.SL, item.IMEI, item.Color);
                    listView.Items[i] = item;

                    listView.Items.Refresh();
                }
            }
            catch
            {
            }
        }