public PopupForm(char mychar, string action, string keyHelp) { InitializeComponent(); ClipboardEntry[] ce = MainForm.Instance.LastClipboardEntries; if (ce.Length < 10) framecount = ce.Length; this.mychar = mychar; for (int i = 0; i < 10; i++) { entries[i] = new PopupEntry(); entries[i].Index = i + 1; entries[i].Left = i < 5 ? 0 : 250; entries[i].Top = (i * 48) % 240; entries[i].MouseDown += PopupForm_MouseDown; entryBox.Controls.Add(entries[i]); if (i >= ce.Length) { entries[i].Visible = false; } else { entries[i].ClipboardEntry = ce[i]; } } entries[frame].Framed = true; caption.Text += action; keys.Text += keyHelp; }
public PopupForm(char mychar, string action, string keyHelp) { InitializeComponent(); ClipboardEntry[] ce = MainForm.Instance.LastClipboardEntries; if (ce.Length < 10) { framecount = ce.Length; } this.mychar = mychar; for (int i = 0; i < 10; i++) { entries[i] = new PopupEntry(); entries[i].Index = i + 1; entries[i].Left = i < 5 ? 0 : 250; entries[i].Top = (i * 48) % 240; entries[i].MouseDown += PopupForm_MouseDown; entryBox.Controls.Add(entries[i]); if (i >= ce.Length) { entries[i].Visible = false; } else { entries[i].ClipboardEntry = ce[i]; } } entries[frame].Framed = true; caption.Text += action; keys.Text += keyHelp; }