-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormLog.cs
45 lines (40 loc) · 1.11 KB
/
FormLog.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PBioManager
{
public partial class FormLog : Form
{
private Guid _IdLog;
public FormLog()
{
InitializeComponent();
_IdLog = Guid.Empty;
}
public FormLog(Guid IdLog)
{
InitializeComponent();
_IdLog = IdLog;
}
private void FormLog_Load(object sender, EventArgs e)
{
this.logTableAdapter.Fill(this.webappDBDataSet.Log);
if (!_IdLog.Equals(Guid.Empty))
{
WebappDBDataSet.LogRow log = this.webappDBDataSet.Log.Where(l => l.IdLog.Equals(_IdLog)).Single();
txtText.Text = log.Texto;
lblDate.Text = log.FechaLog.ToString();
}
}
private void btnClose_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}