コード例 #1
0
        public void Download(Message message)
        {
            Assert.ArgumentNotNull((object)message, "message");
            string file1 = Context.ClientPage.ServerProperties["File"] as string;

            if (file1 == null)
            {
                Context.ClientPage.ClientResponse.Alert("You must open a log file first.");
            }
            else
            {
                if (string.IsNullOrEmpty(file1))
                {
                    return;
                }
                string file2 = UserLogForm.GetFile(file1);
                if (string.IsNullOrEmpty(file2))
                {
                    return;
                }
                Files.Download(TempFolder.CreateTempFile(file2));
            }
        }