当前位置: 首页>>代码示例>>C#>>正文


C# ProgressDialog.SetIndeterminate方法代码示例

本文整理汇总了C#中Android.App.ProgressDialog.SetIndeterminate方法的典型用法代码示例。如果您正苦于以下问题:C# ProgressDialog.SetIndeterminate方法的具体用法?C# ProgressDialog.SetIndeterminate怎么用?C# ProgressDialog.SetIndeterminate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Android.App.ProgressDialog的用法示例。


在下文中一共展示了ProgressDialog.SetIndeterminate方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RefreshItemDetail

        void RefreshItemDetail(Int64 itemID)
        {
            string itemDetailURL = String.Format("{0}/itemdetail.php?id={1}", MainActivity.BASE_URL, itemID.ToString().Replace(",", ""));

            pd = new ProgressDialog(this);
            pd.SetTitle("Loading...");
            pd.SetMessage("Please wait while loading...");
            pd.SetCancelable(false);
            pd.SetIndeterminate(true);
            pd.Show();

            var worker = new BackgroundWorker();
            worker.DoWork += OnGetItemDetail;
            worker.RunWorkerAsync(itemDetailURL);
        }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:15,代码来源:ItemDetailActivity.cs

示例2: RefreshStations

        void RefreshStations()
        {
            string stationInventoryURL = String.Format("{0}/stationinventory.php", MainActivity.BASE_URL);

            pd = new ProgressDialog(this);
            pd.SetTitle("Loading...");
            pd.SetMessage("Please wait while loading...");
            pd.SetCancelable(false);
            pd.SetIndeterminate(true);
            pd.Show();

            var worker = new BackgroundWorker();
            worker.DoWork += OnGetStationInventory;
            worker.RunWorkerAsync(stationInventoryURL);
        }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:15,代码来源:StationInventoryActivity.cs

示例3: RefreshItems

        void RefreshItems()
        {
            string itemStocksURL = String.Format("{0}/itemstocks.php", MainActivity.BASE_URL);

            pd = new ProgressDialog(this);
            pd.SetTitle("Loading...");
            pd.SetMessage("Please wait while loading...");
            pd.SetCancelable(false);
            pd.SetIndeterminate(true);
            pd.Show();

            var worker = new BackgroundWorker();
            worker.DoWork += OnGetItemStocks;
            worker.RunWorkerAsync(itemStocksURL);
        }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:15,代码来源:ItemStocksActivity.cs

示例4: RefreshPilotList

        void RefreshPilotList()
        {
            string pilotsOnlineURL = String.Format("{0}/onlinepilots.php", MainActivity.BASE_URL);

            pd = new ProgressDialog(this);
            pd.SetTitle("Loading...");
            pd.SetMessage("Please wait while loading...");
            pd.SetCancelable(false);
            pd.SetIndeterminate(true);
            pd.Show();

            var worker = new BackgroundWorker();
            worker.DoWork += OnGetOnlinePilots;
            worker.RunWorkerAsync(pilotsOnlineURL);
        }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:15,代码来源:OnlinePilotsActivity.cs

示例5: RefreshPilotDetail

        void RefreshPilotDetail(Int64 pilotID)
        {
            //TODO: Remove workaround for Int64.ToString() problem
            string pilotProfileURL = String.Format("{0}/pilotprofile.php?id={1}", MainActivity.BASE_URL, pilotID.ToString().Replace(",", ""));

            pd = new ProgressDialog(this);
            pd.SetTitle("Loading...");
            pd.SetMessage("Please wait while loading...");
            pd.SetCancelable(false);
            pd.SetIndeterminate(true);
            pd.Show();

            var worker = new BackgroundWorker();
            worker.DoWork += OnGetProfile;
            worker.RunWorkerAsync(pilotProfileURL);
        }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:16,代码来源:PilotDetailActivity.cs

示例6: RefreshPilotByName

        private void RefreshPilotByName(string pilotName)
        {
            string pilotProfileURL = String.Format("{0}/pilotprofile.php?name={1}", MainActivity.BASE_URL, pilotName);

            pd = new ProgressDialog(this);
            pd.SetTitle("Loading...");
            pd.SetMessage("Please wait while loading...");
            pd.SetCancelable(false);
            pd.SetIndeterminate(true);
            pd.Show();

            var worker = new BackgroundWorker();
            worker.DoWork += OnGetProfile;
            worker.RunWorkerAsync(pilotProfileURL);
        }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:15,代码来源:PilotDetailActivity.cs

示例7: OnCreateDialog

        protected override Dialog OnCreateDialog(int id)
        {
            base.OnCreateDialog (id);
            Activity activity = this;
            AlertDialog alertDialog;
            ProgressDialog progressDialog = new ProgressDialog(this);
            SyncService currentService = SyncManager.getInstance().getCurrentService();
            string serviceDescription = currentService.getDescription();
            AlertDialog.Builder builder = new AlertDialog.Builder(this);

            switch(id) {
                case DIALOG_SYNC:
                    progressDialog.SetIndeterminate(true);
                    progressDialog.SetTitle(string.Format(GetString(Resource.String.syncing),serviceDescription));
                    progressDialog.SetMessage(dialogstring);
            //					progressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
            //
            //						public void onCancel(DialogInterface dialog) {
            //							SyncManager.getInstance().cancel();
            //						}
            //
            //					});
            //					progressDialog.setButton(ProgressDialog.BUTTON_NEGATIVE, GetString(Resource.String.cancel), new DialogInterface.OnClickListener() {
            //						public void onClick(DialogInterface dialog, int which) {
            //							progressDialog.cancel();
            //						}
            //					});
                    return progressDialog;
                case DIALOG_AUTH_PROGRESS:
                    authProgressDialog = new ProgressDialog(this);
                    authProgressDialog.SetTitle("");
                    authProgressDialog.SetMessage(GetString(Resource.String.prefSyncCompleteAuth));
                    authProgressDialog.SetIndeterminate(true);
                    authProgressDialog.SetCancelable(false);
                    return authProgressDialog;
                case DIALOG_ABOUT:
                    // grab version info
                    string ver;
                    try {
                    ver = PackageManager.GetPackageInfo(PackageName, 0).VersionName;
                    } catch (NameNotFoundException e) {
                        e.PrintStackTrace();
                        ver = "Not found!";
                        return null;
                    }

                    // format the string
                    string aboutDialogFormat = GetString(Resource.String.strAbout);
                    string aboutDialogStr = string.Format(aboutDialogFormat, GetString(Resource.String.app_desc), // App description
                            GetString(Resource.String.author), // Author name
                            ver // Version
                            );

                    // build and show the dialog
                    var ad = new AlertDialog.Builder(this).SetMessage(aboutDialogStr)
                                                          .SetTitle(Resources.GetString(GetString (Resource.String.btnProjectPage)))
                                                  		  .SetIcon(Resource.Drawable.Icon)
                        ;

            //							.setNegativeButton(GetString(Resource.String.btnProjectPage), new OnClickListener() {
            //								public void onClick(DialogInterface dialog, int which) {
            //									StartActivity(new Intent(Intent.ACTION_VIEW, Uri
            //											.Parse(Tomdroid.PROJECT_HOMEPAGE)));
            //									dialog.dismiss();
            //								}
            //							}).setPositiveButton(GetString(Resource.String.btnOk), new OnClickListener() {
            //								public void onClick(DialogInterface dialog, int which) {
            //									dialog.dismiss();
            //								}
                    return ad.Create();
                case DIALOG_FIRST_RUN:
            //					.setNeutralButton(GetString(Resource.String.btnOk), new OnClickListener() {
            //						public void onClick(DialogInterface dialog, int which) {
            //							Preferences.putBoolean(Preferences.Key.FIRST_RUN, false);
            //							dialog.dismiss();
            //						}
            //					})

                var adFirstRun = new AlertDialog.Builder(this).SetMessage(Resources.GetString(Resource.String.strWelcome))
                                                      .SetTitle(Resources.GetString(Resource.String.titleWelcome))
                        .SetIcon(Resource.Drawable.Icon);
                return adFirstRun.Create();
                case DIALOG_NOT_FOUND:
                    addCommonNoteNotFoundDialogElements(builder);
                    return builder.Create();
                case DIALOG_NOT_FOUND_SHORTCUT:
                    addCommonNoteNotFoundDialogElements(builder);
                    Intent removeIntent = new NoteViewShortcutsHelper(this).getRemoveShortcutIntent(dialogstring, uri);
            //			        builder.setPositiveButton(GetString(Resource.String.btnRemoveShortcut), new OnClickListener() {
            //			            public void onClick(DialogInterface dialogInterface, readonly int i) {
            //			                sendBroadcast(removeIntent);
            //			                Finish();
            //			            }
            //			        });
                    return builder.Create();
                case DIALOG_PARSE_ERROR:
                    return new AlertDialog.Builder(this)
                    .SetMessage(GetString(Resource.String.messageErrorNoteParsing))
                    .setTitle(GetString(Resource.String.error))
            //					.setNeutralButton(GetString(Resource.String.btnOk), new OnClickListener() {
//.........这里部分代码省略.........
开发者ID:decriptor,项目名称:tomdroid,代码行数:101,代码来源:Tomdroid.cs


注:本文中的Android.App.ProgressDialog.SetIndeterminate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。