private void AddRecent(OpenedHistoryAction action, int num) { LinkLabel ll = new LinkLabel(); ll.AutoSize = true; ll.Font = new System.Drawing.Font("Calibri Light", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); ll.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline; ll.LinkColor = System.Drawing.Color.FromArgb(41, 90, 160); ll.Location = new System.Drawing.Point(59, 260 + num * 24); ll.Text = action.type.ToString() + (String.IsNullOrEmpty(action.name)?"":" - " + action.name )+ " (" + action.entry + ")"; ll.Tag = action; ll.Click += ll_Click; recents.Add(ll); this.Controls.Add(ll); }
private void AddRecent(OpenedHistoryAction action, int num) { LinkLabel ll = new LinkLabel(); ll.AutoSize = true; ll.Font = new System.Drawing.Font("Calibri Light", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); ll.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline; ll.LinkColor = System.Drawing.Color.FromArgb(41, 90, 160); ll.Location = new System.Drawing.Point(59, 260 + num * 24); ll.Text = action.type.ToString() + (String.IsNullOrEmpty(action.name)?"":" - " + action.name) + " (" + action.entry + ")"; ll.Tag = action; ll.Click += ll_Click; recents.Add(ll); this.Controls.Add(ll); }
public LoadRequestEventArgs(OpenedHistoryAction action) { type = action.type; entry = action.entry; }