public BoardPage() { InitializeComponent(); string savedir = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "//pickandplacelogs//"; System.IO.Directory.CreateDirectory(savedir); LogFile = savedir + DateTime.Now.ToString("yyyyMMdd-HH-mm") + ".xml"; dtLog.TableName = "boardcomponents"; dtLog.Columns.Add("ComponentValue", typeof(string)); dtLog.Columns.Add("Package", typeof(string)); dtLog.Columns.Add("TapeFeeder", typeof(bool)); dtLog.Columns.Add("FeederID", typeof(string)); dtLog.Columns.Add("ComponentCode", typeof(int)); dtLog.Columns.Add("Placed", typeof(int)); dtLog.WriteXml(LogFile); SetupGridView(_dgComponents); SetupFeeders(_dgFeeders); App MyApplication = ((App)Application.Current); _kflop = MyApplication.GetKFlop(); usbController = MyApplication.GetUSBDevice(); builder.setupPCBBuilder(_kflop, usbController, dsData, LogFile); }
public ManualControl() { InitializeComponent(); App MyApplication = ((App)Application.Current); _kflop = MyApplication.GetKFlop(); usbController = MyApplication.GetUSBDevice(); }
public BoardPage() { InitializeComponent(); SetupGridView(_dgComponents); App MyApplication = ((App)Application.Current); _kflop = MyApplication.GetKFlop(); usbController = MyApplication.GetUSBDevice(); builder.setupPCBBuilder(_kflop, usbController, dsData); }
public BoardDesigner() { InitializeComponent(); App MyApplication = ((App)Application.Current); _kflop = MyApplication.GetKFlop(); usbController = MyApplication.GetUSBDevice(); POPComponentsList(); POPDataTable(dscomponents); SetupGridView(_dgBoard); _dgBoard.ItemsSource = dscomponents.Tables["Components"].DefaultView; }