Beispiel #1
0
        //Button_Down_Click...
        private void Button_Down_Click_Extend(object sender, EventArgs e)
        {
            //调用模版提供的默认实现.--默认实现可能会调用相应的Action.
            if (this.Model.ViewLogViewer.FocusedRecord != null)
            {
                string fileName = this.Model.ViewLogViewer.FocusedRecord.FileName;
                string file     = LogFiles.CopyFile(fileName);

                string script = $"window.open('../temp/{file}');";
                AtlasHelper.RegisterAtlasStartupScript(this.Page, this.Page.GetType(), Guid.NewGuid().ToString(), script, true);
            }

            Button_Down_Click_DefaultImpl(sender, e);
        }