本文整理汇总了C#中Android.App.ProgressDialog.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# ProgressDialog.Dispose方法的具体用法?C# ProgressDialog.Dispose怎么用?C# ProgressDialog.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.App.ProgressDialog
的用法示例。
在下文中一共展示了ProgressDialog.Dispose方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCreate
protected override void OnCreate(Bundle bundle)
{
base.OnCreate (bundle);
_pd = ProgressDialog.Show (this, "Please wait...", "Querying Azure!");
ThreadPool.QueueUserWorkItem (delegate {
var root = BuildRoot (kGetAllUrl);
RunOnUiThread (delegate {
var da = new DialogAdapter(this, root);
var lv = new ListView(this) {Adapter = da};
SetContentView(lv);
_pd.Dismiss ();
_pd.Dispose ();
});
});
}
示例2: OnCreate
protected async override void OnCreate (Bundle bundle)
{
try
{
base.OnCreate (bundle);
SetContentView (Resource.Layout.Search);
List<string> WorkshopList;
List<WorkshopSets> WrkSets;
EditText txtsearch = FindViewById<EditText>(Resource.Id.txtsearch);
Spinner searchWorkshop= FindViewById<Spinner>(Resource.Id.ddpworkshop);
ExpandableListView ddpSearchList = FindViewById<ExpandableListView> (Resource.Id.ddpSearch);
ImageButton btnsearch = FindViewById<ImageButton>(Resource.Id.imgsearch);
ListView workshoplist= FindViewById<ListView>(Resource.Id.lvlWorkShops);
string search;
WorkshopList = new List<string>();
WorkshopList.Add("Session");
WorkshopList.Add("Workshop");
WorkshopList.Add("Programs");
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,Android.Resource.Layout.SimpleDropDownItem1Line,WorkshopList);
searchWorkshop.Adapter = adapter;
btnsearch.Click += async delegate
{
try
{
search= txtsearch.Text;
string searchBy;
searchBy = searchWorkshop.SelectedItem.ToString();
progressDialog = ProgressDialog.Show(this, "", "Searching...");
if (searchBy == "Session")
{
//string WorkshopSetId = Intent.GetStringExtra(search);
_WorkshopSessions = await RESTClass.GetWorkshopSessions("?workshopSetId=" + search);
//_WorkshopSessions = await RESTClass.GetWorkshopSessions("?topic=" + WorkshopSetId + "&active=true&etc.");
}
else if(searchBy == "Workshop")
{
WrkSets = await RESTClass.GetWorkshopList("?active=true");
taskList = new Adapters.SearchAdapter(this, WrkSets);
workshoplist.Adapter= taskList;
// lvWorkShops.Adapter = taskList;
// new AlertDialog.Builder (this)
// .SetMessage(taskList.GetId(0))
// .SetTitle("Application Error")
// .Show();
}
else if(searchBy == "Programs")
{
//await Ge
}
dictGroup.Clear();
CreateExpendableListData();
ddpSearchList.SetAdapter (new ExpandListSessionAdapter (this, dictGroup));
}
catch (Exception e)
{
ErrorHandling.LogError(e, this);
}
finally
{
progressDialog.Dismiss();
progressDialog.Dispose();
}
} ;
ddpSearchList.ChildClick += delegate(object sender, ExpandableListView.ChildClickEventArgs e)
{
try
{
string itmGroup = lstKeys [e.GroupPosition];
WorkshopSessions itmChild = dictGroup [itmGroup];
}
catch (Exception Ex)
{
ErrorHandling.LogError (Ex, this);
}
} ;
ddpSearchList.GroupExpand += delegate(object sender, ExpandableListView.GroupExpandEventArgs e)
{
if (lastExpandedPosition != -1 && e.GroupPosition != lastExpandedPosition)
{
ddpSearchList.CollapseGroup(lastExpandedPosition);
}
lastExpandedPosition = e.GroupPosition;
} ;
//.........这里部分代码省略.........