public void InitNovelView(ClassTypeInfo classTypeInfo) { dateLabel.Content = classTypeInfo.Class_File_Date.ToString("yyyy-MM-dd"); char[] delimiterChars = { '.' }; string[] words = classTypeInfo.Class_File_Name.Split(delimiterChars); int count = words.Length; titleLabel.Content = words[0].ToString(); novelGrid.DataContext = classTypeInfo.Class_File_Name; }
public void InitFilmView(ClassTypeInfo classTypeInfo) { string strFilePath = string.Empty; if (classTypeInfo.Class_File_Type == 2) { strFilePath = "VideoFile/" + classTypeInfo.Class_Video_Title; image2.DataContext = classTypeInfo.Class_File_Name; } else { strFilePath = "ImageFile/" + classTypeInfo.Class_File_Name; image2.DataContext = classTypeInfo.Class_Img_Folder; } WebDownloader.GetInstance().DownloadFile(strFilePath, TitleDownloadComplete, this); dateLabel.Content = classTypeInfo.Class_File_Date.ToString("yyyy-MM-dd"); char[] delimiterChars = { '.' }; string[] words = classTypeInfo.Class_Video_Title.Split(delimiterChars); int count = words.Length; if (classTypeInfo.Class_File_Type == 2) { fpFlag = true; titleLabel.Content = words[0].ToString(); } else { fpFlag = false; titleLabel.Content = classTypeInfo.Class_Img_Folder + "(" + classTypeInfo.Class_File_Count + ")"; } for (int i = 0; i < Window1._ClassListInfo.Classes.Count; i++) { if (Window1._ClassListInfo.Classes[i].Class_Type_Id == classTypeInfo.Class_File_Area) { positionLabel.Content = Window1._ClassListInfo.Classes[i].Class_Type_Name; break; } } }
public void InitFilmView(ClassTypeInfo classTypeInfo) { string strFilePath = string.Empty; if (classTypeInfo.Class_File_Type == 2) { string[] strVideoTitles = new string[] { "" }; string[] stringSeparators = new string[] { "||" }; strVideoTitles = classTypeInfo.Class_Video_Title.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries); //strFilePath = "VideoFile/" + classTypeInfo.Class_Video_Title; //strFilePath = "VideoFile/" + strVideoTitles[0]; strFilePath = strVideoTitles[0]; strFilePath = classTypeInfo.Class_File_Name.Substring(0, classTypeInfo.Class_File_Name.LastIndexOf("/")) + "/" + strFilePath; image2.DataContext = classTypeInfo.Class_File_Name; _nVideoTitleCount = strVideoTitles.Length; } else { //strFilePath = "ImageFile/" + classTypeInfo.Class_File_Name; strFilePath = classTypeInfo.Class_File_Name; image2.DataContext = classTypeInfo.Class_Img_Folder; } WebDownloader.GetInstance().DownloadFile(strFilePath, TitleDownloadComplete, this); dateLabel.Content = classTypeInfo.Class_File_Date.ToString("yyyy-MM-dd"); char[] delimiterChars = { '.' }; string[] words = classTypeInfo.Class_File_Name.Split(delimiterChars); int count = words.Length; // 2014-01-05: GreenRose int nDelimiterIndex = classTypeInfo.Class_File_Name.LastIndexOf("."); //string strVideoFileName = classTypeInfo.Class_File_Name.Substring(0, nDelimiterIndex); string strVideoFileName = classTypeInfo.Class_Img_Folder; if (classTypeInfo.Class_File_Type == 2) { fpFlag = true; // 2013-12-13: GreenRose // 제목의 길이가 5문자이상이라면 ToolTip에 제목을 현시하여 준다. //if (words[0].ToString().Length > 8) if (strVideoFileName.Length > 8) { //string strTitle = words[0].ToString().Substring(0, 8) + "..."; string strTitle = strVideoFileName.Substring(0, 8) + "..."; titleLabel.Content = strTitle; titleLabel.ToolTip = strVideoFileName; //titleLabel.ToolTip = words[0].ToString(); } else { titleLabel.Content = strVideoFileName; //titleLabel.Content = words[0].ToString(); } //lblCountOfImage.Content = string.Empty; lblCountOfImage.Content = _nVideoTitleCount.ToString() + "张"; // 2013-12-13: GreenRose // 비디오보기에서 비디오이미지를 클릭하였을때의 사건처리. m_classTypeInfo = classTypeInfo; image1.Cursor = Cursors.Hand; image1.MouseLeftButtonDown += new MouseButtonEventHandler(image1_LButtonClick); } else { fpFlag = false; // 2013-12-13: GreenRose // 제목의 길이가 5문자이상이라면 ToolTip에 제목을 현시하여 준다. if (classTypeInfo.Class_Img_Folder.Length > 8) { string strTitle = classTypeInfo.Class_Img_Folder.Substring(0, 8) + "..."; titleLabel.Content = strTitle; titleLabel.ToolTip = classTypeInfo.Class_Img_Folder; } else { titleLabel.Content = classTypeInfo.Class_Img_Folder; } lblCountOfImage.Content = classTypeInfo.Class_File_Count + "张"; m_classTypeInfo = classTypeInfo; image1.Cursor = Cursors.Hand; image1.MouseLeftButtonDown += new MouseButtonEventHandler(image1_LButtonClick1); } for (int i = 0; i < Login._ClassListInfo.Classes.Count; i++) { if (Login._ClassListInfo.Classes[i].Class_Type_Id == classTypeInfo.Class_File_Area) { positionLabel.Content = Login._ClassListInfo.Classes[i].Class_Type_Name; break; } } }
/// <summary> /// Initializes a new instance of the <see cref="ClassConnectorInfo"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="child">The child.</param> /// <param name="connectorName">Name of the connector.</param> public ClassConnectorInfo(ClassTypeInfo parent, ClassTypeInfo child, string connectorName) { this.Name = connectorName; this.Parent = parent; this.Child = child; }