mono touch中UIAlertView对话框多选项处理

来源:互联网 发布:ubuntu snmp 编辑:程序博客网 时间:2024/06/05 01:06
//"取消"=>0, "标清"=>1, "高清"=>2UIAlertView alert = new UIAlertView ("提示", "请选择视频版本", null, "取消", new string[] { "标清", "高清" });alert.Clicked += (s, b) => {if (b.ButtonIndex != 0) {string _url = b.ButtonIndex == 1 ?              TableItems [indexPath.Row].DOWNLOAD_URL_LOW :              TableItems [indexPath.Row].DOWNLOAD_URL;string _cp = FileHelper.GetMyDocumentPath (KeyCenter.Key_CoursePath);//课程路径string _sub = TableItems [indexPath.Row].Course_Number;string _name = StringHelper.GetUrlFileName (_url);int tag = 1; //检查是否下载过了if (FileHelper.FileUploaded (_cp + _sub, _name)) {tag = 2;}base.RowTouch2View = new CourseCenter (TableItems [indexPath.Row], tag, 2);base.RowSelected (tableView, indexPath);}tableView.DeselectRow (indexPath, true);};alert.Show ();

0 0
原创粉丝点击