using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; //todo - display details on the current resolution status //todo - check(mark) the one thats selected //todo - turn top info into textboxes i guess, labels suck namespace BizHawk.Client.EmuHawk { public partial class FirmwaresConfigInfo : Form { public FirmwaresConfigInfo() { InitializeComponent(); } private void lvOptions_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.C && e.Control && !e.Alt && !e.Shift) { PerformListCopy(); } } void PerformListCopy() { var str = lvOptions.CopyItemsAsText(); if (str.Length > 0) Clipboard.SetDataObject(str); } private void tsmiOptionsCopy_Click(object sender, EventArgs e) { PerformListCopy(); } private void lvOptions_MouseClick(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right && lvOptions.GetItemAt(e.X, e.Y) != null) lvmiOptionsContextMenuStrip.Show(lvOptions, e.Location); } } }