private TextBox createInfobox(infotype e, int index, panel tab) { TextBox infobox = new TextBox(); infobox.BackColor = Color.White; infobox.BorderStyle = BorderStyle.None; infobox.ReadOnly = true; infobox.Height = 32; switch (e) { case infotype.Episode: { infobox.Location = new System.Drawing.Point(5, 11 + 32 * index + infopanel.AutoScrollPosition.Y); infobox.Name = "episode" + index.ToString(); infobox.Width = 400; break; } case infotype.Date: { infobox.Location = new System.Drawing.Point(450, 11 + 32 * index + infopanel.AutoScrollPosition.Y); infobox.Name = "date" + index.ToString(); infobox.Width = 200; break; } } if (tab == panel.panel1) { infopanel.Controls.Add(infobox); } else { batchpanel.Controls.Add(infobox); } return(infobox); }
private TextBox createInfobox(infotype e,int index,panel tab) { TextBox infobox =new TextBox(); infobox.BackColor = Color.White; infobox.BorderStyle = BorderStyle.None; infobox.ReadOnly = true; infobox.Height = 32; switch(e) { case infotype.Episode: { infobox.Location = new System.Drawing.Point(5, 11+32 * index+infopanel.AutoScrollPosition.Y); infobox.Name = "episode"+index.ToString(); infobox.Width = 400; break; } case infotype.Date: { infobox.Location = new System.Drawing.Point(450, 11+32*index+infopanel.AutoScrollPosition.Y); infobox.Name = "date"+index.ToString(); infobox.Width = 200; break; } } if(tab == panel.panel1) { infopanel.Controls.Add(infobox); } else { batchpanel.Controls.Add(infobox); } return infobox; }
/// <summary> /// Costruttore parametrico /// </summary> /// <param name="appCode">APP CODE</param> /// <param name="logCode">CODICE del log</param> /// <param name="userID">username dell'utente</param> /// <param name="userMail">The user mail.</param> /// <param name="details">dettagli del log</param> public MailLogInfo(string appCode, string logCode, string userID, string userMail, infotype details) : base(appCode, logCode, details.Serialize()) { this.userID = userID; this.userMail = userMail; }