예제 #1
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.action_scan:
                dataHandler.LoadDeviceInfoList();
                return(true);

            case Resource.Id.action_add:
                ui.ShowDialog(GUI_Handler.DialogChoice.INPUT_TEXT);
                new Thread(() =>
                {
                    while (ui.GetDialogState(GUI_Handler.DialogChoice.INPUT_TEXT))
                    {
                        ;
                    }
                    if (ui.GetInputTextValue() != "")
                    {
                        dataHandler.AddStreamLink(ui.GetInputTextValue());
                        ui.FillRtspListView(dataHandler.GetStreamLinkList());
                    }
                }).Start();
                return(true);
            }
            return(base.OnOptionsItemSelected(item));
        }
예제 #2
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     SetContentView(Resource.Layout.Main);
     dataHandler = new Data_Handler(this);
     ui          = GUI_Handler.Instance;
     ui.GUI_Handler_Initialize(this);
     ui.FillRtspListView(dataHandler.GetStreamLinkList());
 }