コード例 #1
0
        private Boolean ShareFile(String fullPath)
        {
            if (!VelostiScsi.IsPlugin_PubDrive)
            {
                this.Notify_Eject();
                return(false);
            }
            ShareForm sf = new ShareForm();

            sf.ShowDialog();
            if (sf.EmailAddrStr == String.Empty || sf.DialogResult == DialogResult.Cancel)
            {
                return(false);
            }
            return(this.DropBoxUser.ShareFile(sf.EmailAddrStr, fullPath));
        }
コード例 #2
0
        private void ShareFile(String[] fullPaths)
        {
            if (!VelostiScsi.IsPlugin_PubDrive)
            {
                this.Notify_Eject();
                return;
            }
            ShareForm sf = new ShareForm();

            sf.ShowDialog();
            if (sf.EmailAddrStr == String.Empty || sf.DialogResult == DialogResult.Cancel)
            {
                return;
            }
            foreach (String fullPath in fullPaths)
            {
                this.DropBoxUser.ShareFile(sf.EmailAddrStr, fullPath);
            }
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: lixiaoyi1108/SecuruStik
 private void ShareFile( String[] fullPaths )
 {
     if ( !VelostiScsi.IsPlugin_PubDrive )
     {
         this.Notify_Eject();
         return;
     }
     ShareForm sf = new ShareForm();
     sf.ShowDialog();
     if ( sf.EmailAddrStr == String.Empty || sf.DialogResult == DialogResult.Cancel )
         return;
     foreach ( String fullPath in fullPaths )
     {
         this.DropBoxUser.ShareFile( sf.EmailAddrStr , fullPath );
     }
 }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: lixiaoyi1108/SecuruStik
 private Boolean ShareFile( String fullPath )
 {
     if ( !VelostiScsi.IsPlugin_PubDrive )
     {
         this.Notify_Eject();
         return false;
     }
     ShareForm sf = new ShareForm();
     sf.ShowDialog();
     if ( sf.EmailAddrStr == String.Empty || sf.DialogResult == DialogResult.Cancel )
         return false;
     return this.DropBoxUser.ShareFile( sf.EmailAddrStr , fullPath );
 }