This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public interface IMainView | |
| { | |
| void RefreshList(IList<string> portfolioNames); | |
| void StartAddPortfolioActivity(); | |
| void StartViewPortfolioActivity(long portfolioId); | |
| void StartEditPortfolioActivity(int itemId); | |
| void StartConfigActivity(); | |
| void ExitApplication(); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //MIT license | |
| public static UIImage ScaleImage(UIImage image, int maxSize) | |
| { | |
| UIImage res; | |
| using (CGImage imageRef = image.CGImage) | |
| { | |
| CGImageAlphaInfo alphaInfo = imageRef.AlphaInfo; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // NOTE: For an actively-maintained version of this script, see https://github.com/mminer/consolation. | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A console to display Unity's debug logs in-game. | |
| /// </summary> | |
| public class Console : MonoBehaviour | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* Base fragment to ensure the parent activity implements a contract interface. */ | |
| public abstract class ContractFragment<T> extends Fragment { | |
| private T mContract; | |
| @Override | |
| public void onAttach(Activity activity) { | |
| try { | |
| mContract = (T)activity; | |
| } catch (ClassCastException e) { | |
| throw new IllegalStateException(activity.getClass().getSimpleName() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | declare interface AngularVersion { | |
| full: string; | |
| major: number; | |
| minor: number; | |
| dot: number; | |
| codeName: string; | |
| } | |
| declare interface AngularModule { | |
| requires: string[]; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import android.content.res.Resources; | |
| import android.graphics.Bitmap; | |
| import android.graphics.NinePatch; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.NinePatchDrawable; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| /** | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //start with DoAdd, which comes off a button push. | |
| // it does pop up one screen, then another one, which is not ideal, | |
| // but it wouldn't be hard to adapt. | |
| async void DoAdd () | |
| { | |
| var camera = await PickCameraForLoad (); | |
| if (camera != null) | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class BackgroundDownload | |
| { | |
| public BackgroundDownload () | |
| { | |
| } | |
| NSUrlSessionDownloadTask downloadTask; | |
| static NSUrlSession session; | |
| public async Task DownloadFileAsync(Uri url, string destination) | |
| { | |
| if (downloadTask != null) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; | |
| using Android.App; | |
| using Android.Content; | |
| using Android.OS; | |
| public abstract class ActivityBase : Activity { | |
| private int activityResultRegistrationCounter = 10000; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| using System.Collections.Generic; | |
| using System.Collections.ObjectModel; | |
| using System.Collections.Specialized; | |
| using System.ComponentModel; | |
| using System.Linq; | |
| using System.Text; | |
| using Android.App; | |
| using Android.Content; | |
| using Android.OS; | 
OlderNewer