예제 #1
0
        private void LoadData(params object[] args)
        {
            var format = args[0] as string;

            switch (format)
            {
            case "ppt":
                CurrentLinkViewContent = new PowerPointContent();
                break;

            case "doc":
                CurrentLinkViewContent = new WordContent();
                break;

            case "xls":
                CurrentLinkViewContent = new ExcelContent();
                break;

            case "pdf":
                CurrentLinkViewContent = new PdfContent();
                break;

            case "video":
            case "mp4":
            case "wmv":
                CurrentLinkViewContent = new VideoContent();
                break;
            }
            CurrentLinkViewContent?.Load(args);
            ContetChanged?.Invoke(this, EventArgs.Empty);
        }
예제 #2
0
 private void ReleaseData()
 {
     CurrentLinkViewContent = null;
     ContetChanged?.Invoke(this, EventArgs.Empty);
 }