using Support.Models; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Support { public partial class Logs : Form { private Models.Order _Order = null; public Logs(Order order) { InitializeComponent(); this._Order = order; dgAcks.DataSource = null; dgLogs.DataSource = null; if (this._Order != null) { if(this._Order.Logs != null && this._Order.Logs.Count > 0) { this.dgLogs.DataSource = this._Order.Logs; } if (this._Order.Acks != null && this._Order.Acks.Count > 0) { this.dgAcks.DataSource = this._Order.Acks; } } } private void button1_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; } } }