Пример #1
0
    static public void CellClick(object sender, EventArgs a)
    {
        DataGridViewCell Cell = Extractor.Data.CurrentCell;

        if (Extractor.Box.SelectedItem != null)
        {
            string     FullName = (Extractor.Box.SelectedItem as FileInfo).FullName;
            PakFile    Pak      = _Paks[FullName];
            PakElement Element  = Pak._Elements.Find(info => info.Id == int.Parse(Cell.OwningRow.Cells[0].Value.ToString()));

            if (Cell.OwningColumn.Name == "Extract")
            {
                if (Element != null)
                {
                    AddToExtract(Element);
                }
            }
            else if (Cell.OwningColumn.Name == "Software")
            {
                if (Element != null)
                {
                    Element.OpenSoftware();
                }
            }
        }
    }