Esempio n. 1
0
        private void buttonXCheck_Click(object sender, EventArgs e)
        {
            DownloadingItem item = new DownloadingItem(txtUrl.Text, null);

            try
            {
                item.GetFileLength();
                if (item.FileLength > 0)
                {
                    MessageBoxEx.Show(string.Format("File Size:{0:N0} bytes, Update Time:{1:yyyy-MM-dd HH:mm:ss}", item.FileLength, item.LastModified));
                }
                else
                {
                    MessageBoxEx.Show("File does not exist");
                }
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show("An error occurred:" + ex.Message);
            }
        }
Esempio n. 2
0
        private void buttonXCheck_Click(object sender, EventArgs e)
        {
            DownloadingItem item = new DownloadingItem(txtUrl.Text, null);

            try
            {
                item.GetFileLength();
                if (item.FileLength > 0)
                {
                    MessageBoxEx.Show(string.Format("패치용량:{0:N0} bytes, 배포시간:{1:yyyy-MM-dd HH:mm:ss}", item.FileLength, item.LastModified));
                }
                else
                {
                    MessageBoxEx.Show("파일이 존재하지 않습니다.");
                }
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show("ERROR:" + ex.Message);
            }
        }