protected override void OnCreate(Bundle bundle)
        {
            bool foundAdapter = StartBluetooth();

            if (foundAdapter)
            {
                device = FindPairedDevice();
            }

            if (device == null && foundAdapter == true)
            {
                Discover();
            }
            else if (foundAdapter != false)
            {
                CreateSocket();
                StartRecieving();
            }

            layout = new OverallLayout(this);
            SetContentView(layout);

            Task.Run(() => { });

            base.OnCreate(bundle);
        }
        private void NavigateButton_Click(object sender, EventArgs e)
        {
            SetCurrentOrder();

            LiveOrdersLayout layout        = (LiveOrdersLayout)container.Parent;
            OverallLayout    overallLayout = (OverallLayout)layout.Parent;

            overallLayout.SetLayout(0);
        }
        protected override void OnCreate(Bundle bundle)
        {
            if (StartBluetooth())
            {
                MakeDiscoverable();
            }

            BlueTooth.Context = this;

            layout = new OverallLayout(this);
            SetContentView(layout);

            base.OnCreate(bundle);
        }
        private void OrdersList_ItemClick(object sender, AdapterView.ItemClickEventArgs e)
        {
            if (e.Id > 0)
            {
                OrderModel       model  = new OrderModel((int)e.Id);
                LiveOrdersLayout layout = (LiveOrdersLayout)container;

                //svc.SetCurrentOrder((int)e.Id);

                layout.OrderFragment.CurrentOrder = model;
                layout.OrderFragment.PopulateOrder(model);
            }
            else
            {
                svc.ClearCurrentOrder();
                OverallLayout overall = (OverallLayout)container.Parent;
                overall.SetLayout(0);
            }
        }