コード例 #1
0
ファイル: PopupForm.cs プロジェクト: hoangduit/mwinapi
 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;
 }
コード例 #2
0
ファイル: PopupForm.cs プロジェクト: zouhao485/mwinapi
 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;
 }