void InitializeApplication() { m_handlerAlert = new Handler(); m_upca = new UpcAlert(this, m_handlerAlert); StatusBox sb = new StatusBox(); TextView tv = FindViewById <TextView>(Resource.Id.tvLog); sb.Initialize(tv, m_upca, this); m_isr = sb; m_lpActual = new LogProvider(null); m_lp = new UpcLogProvider(m_lpActual); m_upccCore = new UpcInvCore(m_upca, m_isr, m_lp); m_plsProcessing = new List <string>(); m_txtLocation = FindViewById <TextView>(Resource.Id.tvLocationLabel); m_ebNotes = FindViewById <EditText>(Resource.Id.ebTastingNotes); m_ebTitle = FindViewById <EditText>(Resource.Id.ebTitle); m_ebScanCode = FindViewById <EditText>(Resource.Id.ebCode); m_ebLocation = FindViewById <EditText>(Resource.Id.ebLocation); m_txtStatus = FindViewById <TextView>(Resource.Id.tvStatus); m_cbCheckOnly = FindViewById <CheckBox>(Resource.Id.cbCheckOnly); m_txtBinCode = FindViewById <TextView>(Resource.Id.tvBinLabel); m_txtRow = FindViewById <TextView>(Resource.Id.tvRowLabel); m_txtColumn = FindViewById <TextView>(Resource.Id.tvColumnLabel); m_ebBinCode = FindViewById <EditText>(Resource.Id.ebBin); m_ebRow = FindViewById <EditText>(Resource.Id.ebRow); m_ebColumn = FindViewById <EditText>(Resource.Id.ebColumn); }
public MainPage() { m_lpActual = ((App)Application.Current).LpCurrent(); m_lp = new UpcLogProvider(m_lpActual); InitializeComponent(); m_ups = new Scanner(Dispatcher, scannerControl); m_upca = new UpcAlert(); m_sb = new StatusBox(); m_upccCore = new UpcInvCore(m_upca, m_sb, m_lp); m_plsProcessing = new List <string>(); m_sb.Initialize(recStatus, m_upca); AdjustUIForMediaType(m_adasCurrent, m_wdiCurrent); AdjustUIForAvailableHardware(); m_board = new WorkBoard(UpdateWorkBoard); m_pipeline = new ProducerConsumer <Transaction>(null, TransactionDispatcher); m_pipeline.Start(); }