Пример #1
0
        private void lstCreatedThreads_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            int Index = this.lstCreatedThreads.SelectedIndex; //definition of selected index

            //update list of Waiting
            MyThreadInfo SelectedInfo = ListDataCreated.ElementAt(Index);

            SelectedInfo.SetWaiting();

            ListDataWaiting.Insert(0, SelectedInfo);
            lstWaitingThreads.Items.Insert(0, SelectedInfo.InfoToString());

            //update list of Created
            lstCreatedThreads.Items.RemoveAt(Index);
            ListDataCreated.RemoveAt(Index);
        }