Example #1
0
        private void Lookup(string name)

        {
            eq.MarkLookups(name);

            mapCon.Invalidate();
        }
Example #2
0
        private void listView_SelectedIndexChanged(object sender, EventArgs e)
        {
            ListView.SelectedIndexCollection sel = listView.SelectedIndices;
            listView.HideSelection = false;

            if (sel.Count > 0)
            {
                try {
                    if (listView.Visible)
                    {
                        listView.Focus();
                    }

                    if (ListType == 0)

                    {
                        eq?.SetSelectedID(int.Parse(listView.Items[sel[0]].SubItems[11].Text));
                    }
                    else if (ListType == 1)
                    {
                        eq?.SetSelectedTimer(float.Parse(listView.Items[sel[0]].SubItems[4].Text), float.Parse(listView.Items[sel[0]].SubItems[5].Text));
                    }
                    else if (ListType == 2)
                    {
                        eq?.SetSelectedGroundItem(float.Parse(listView.Items[sel[0]].SubItems[3].Text), float.Parse(listView.Items[sel[0]].SubItems[4].Text));
                    }

                    mapCon?.Invalidate();
                }
                catch (Exception ex) { LogLib.WriteLine("Error in ListViewPanel.listView_SelectedIndexChanged: ", ex); }
            }
        }