public ApkFileSystemInfoListViewItem( DroidExplorer.Core.IO.FileSystemInfo fsi, AaptBrandingCommandResult apkInfo )
     : base(fsi)
 {
     this.ApkInfo = apkInfo;
     if ( !string.IsNullOrEmpty ( this.ApkInfo.Label ) ) {
         this.Text = ApkInfo.Label;
     } else {
         this.Text = fsi.Name;
     }
     this.FileName = fsi.Name;
 }
        public ApkPackageListViewItem( AaptBrandingCommandResult apkInfo )
        {
            ApkInformation = apkInfo;
              if ( !string.IsNullOrEmpty ( this.ApkInformation.Label ) ) {
            this.Text = ApkInformation.Label;
              } else {
            this.Text = ApkInformation.Package;
              }

              this.SubItems.Add ( ApkInformation.Package );
              this.SubItems.Add ( ApkInformation.DevicePath );
              this.SubItems.Add ( ApkInformation.Version );
        }
Esempio n. 3
0
        public InstallDialog(IPluginHost pluginHost, InstallMode mode, AaptBrandingCommandResult apkInfo )
            : base(pluginHost)
        {
            InitializeComponent ( );
            this.Mode = mode;
            this.ApkInformation = apkInfo;
            string name = string.Format ( "{0}{1}", !string.IsNullOrEmpty ( ApkInformation.Label ) ? ApkInformation.Label : ApkInformation.Package,
                string.IsNullOrEmpty ( ApkInformation.Version ) ? string.Empty : string.Format ( " {0}", ApkInformation.Version ) );
            this.title.Text = string.Format ( Properties.Resources.InstallDialogWelcomeTitle, name, Mode );
            information.Text = string.Format ( Properties.Resources.InstallDialogInformationLabel, name, mode );
            this.Text = string.Format ( "{0} {1}", mode, name );
            this.perform.Text = string.Format ( "&{0}", Mode.ToString ( ) );

            this.permissions.Visible = this.permissionsLabel.Visible = mode == InstallMode.Install;
            if ( mode == InstallMode.Install ) {
                this.permissions.DataSource = PluginHost.CommandRunner.GetLocalApkPermissions ( string.IsNullOrEmpty ( apkInfo.LocalApk ) ? apkInfo.DevicePath : apkInfo.LocalApk );
            }

            this.icon.Image = PluginHost.CommandRunner.GetLocalApkIconImage ( apkInfo.LocalApk );
        }
 public ApkFileSystemInfoListViewItem( DroidExplorer.Core.IO.FileSystemInfo fsi, int imageIndex, AaptBrandingCommandResult apkInfo )
     : this(fsi, apkInfo)
 {
     this.ImageIndex = imageIndex;
 }