コード例 #1
0
		private void OnCheckCompleted(ProgressDialog dialog)
		{
			if (!checkDialog.Dialog.Ok) 
			{
				Parent.RemoveFocus (this);
				return;
			}

			if (newImage) 
			{
				infoDialog = new ItemWithDialog<InfoDialog>( new InfoDialog("New image available. Download it from www.monobrick.dk or ftp://soborg.net"));
				infoDialog.SetFocus (this);
			} 
			else {
				if (newFirmwareApp)
				{
					questionDialog.SetFocus (this, OnQuestionCompleted);
				} 
				else 
				{
					if (newAddin) 
					{
						infoDialog = new ItemWithDialog<InfoDialog>( new InfoDialog("New Xamarin Add-in. Download it from www.monobrick.dk or ftp://soborg.net"));
						infoDialog.SetFocus (this);
					} 
					else 
					{
						infoDialog = new ItemWithDialog<InfoDialog>( new InfoDialog("No updates available"));
						infoDialog.SetFocus (this);
					} 
				}
			}		
		}
コード例 #2
0
 public override void OnEnterPressed()
 {
     questionDialog.SetFocus(this, OnExit);
 }