public UI_ErrorControl() { InitializeComponent(); Data = FindResource("datahandler") as UI_ErrorControlDataHandler; Data.DGContent = new List <OneRow>(); LaserControl.Library.GlobalEvents.NewInformation += this.NewInformation; /* * List<OneRow> s = new List<OneRow>(); * System.Drawing.Icon ic = (System.Drawing.Icon)LaserControl.Properties.Resources.crit_error_2; * System.Drawing.Bitmap bmp = ic.ToBitmap(); * s.Add(new OneRow() { Type = BitmapToImageSource(bmp), Description = "Hallo Welt" }); * Data.DGContent = s; */ }
public UI_ErrorControl() { InitializeComponent(); Data = FindResource("datahandler") as UI_ErrorControlDataHandler; Data.DGContent = new List<OneRow>(); LaserControl.Library.GlobalEvents.NewInformation += this.NewInformation; /* List<OneRow> s = new List<OneRow>(); System.Drawing.Icon ic = (System.Drawing.Icon)LaserControl.Properties.Resources.crit_error_2; System.Drawing.Bitmap bmp = ic.ToBitmap(); s.Add(new OneRow() { Type = BitmapToImageSource(bmp), Description = "Hallo Welt" }); Data.DGContent = s; */ }