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)); }
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()); }