コード例 #1
0
        private void panelEx3_Click(object sender, EventArgs e)
        {
            //会议记录
            string url = Helper.DownloadFile(_meetingId, Consts.PcUrlPath, _meetingId + ".docx");

            FrmSign sign = new FrmSign(_meetingId, url, 2);

            sign.Show();
            Hide();
        }
コード例 #2
0
 private void ShowForm(string type, string filename)
 {
     if (type == ".txt" || type == ".doc" || type == ".docx")
     {
         string url = Helper.DownloadFile(_meetingId, Consts.PcUrlPath, filename);
         if (!string.IsNullOrEmpty(url))
         {
             FrmSign sign = new FrmSign(_meetingId, url, 1);
             sign.Show();
             Hide();
         }
         else
         {
             MessageBox.Show("下载资源不存在!", "系统消息提示");
         }
     }
     else if (type == ".png" || type == ".jpg" || type == ".gif" || type == ".gif")
     {
         string url = string.Format("{0}{1}/{2}", Consts.DwonUrlPath, _meetingId, filename);
         if (!string.IsNullOrEmpty(url))
         {
             FrmImage image = new FrmImage(url, _meetingId, filename);
             image.Show();
             Hide();
         }
         else
         {
             MessageBox.Show("下载资源不存在!", "系统消息提示");
         }
     }
     else if (type == ".mp4" || type == ".wmv" || type == ".amv")
     {
         string url = string.Format("{0}{1}/{2}", Consts.DwonUrlPath, _meetingId, filename);
         if (!string.IsNullOrEmpty(url))
         {
             FrmVide vide = new FrmVide(url, _meetingId, filename);
             vide.Show();
             Hide();
         }
         else
         {
             MessageBox.Show("下载资源不存在!", "系统消息提示");
         }
     }
     else if (type == ".mp3")
     {
         string  url  = string.Format("{0}{1}\\{2}", Consts.DwonUrlPath, _meetingId, filename + type);
         FrmVide vide = new FrmVide(url, _meetingId, filename);
         vide.Show();
         Hide();
     }
     else
     {
         string url = Helper.DownloadFile(_meetingId, Consts.PcUrlPath, filename);
         if (!string.IsNullOrEmpty(url))
         {
             FrmSign sign = new FrmSign(_meetingId, url, 1);
             sign.Show();
             Hide();
         }
         else
         {
             MessageBox.Show("下载资源不存在!", "系统消息提示");
         }
     }
 }