コード例 #1
0
ファイル: StartPage.cs プロジェクト: Jeidai/VisualSAIStudio
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: StartPage.cs プロジェクト: Jeidai/VisualSAIStudio
 public LoadRequestEventArgs(OpenedHistoryAction action)
 {
     type = action.type;
     entry = action.entry;
 }
コード例 #4
0
 public LoadRequestEventArgs(OpenedHistoryAction action)
 {
     type  = action.type;
     entry = action.entry;
 }