C# 클래스 BaconBuilder.Model.BaconModel

파일 보기 프로젝트 열기: Revelations/BaconApp 1 사용 예제들

공개 메소드들

메소드 설명
CreateNewFile ( string fileName ) : void

Creates a new file with the name.

GetCurrentFileUri ( ) : Uri
InsertComment ( System.Windows.Forms.HtmlDocument document, string comm ) : string
LoadFiles ( ) : void

Reloads the files into memory. TODO: WAIT, WHAT? Every Html file in the directory is loaded into memory? And whenever a file is saved, the WHOLE LOT ARE LOADED INTO MEMORY AGAIN? SHAME ON YOU GOOD SIR.

QrCode ( string file ) : Image
RemoveFile ( string fileName ) : void

Remove the file from the wroking directory.

RenameFile ( string oldName, string newName ) : void

Renames the file to a new name.

SaveFile ( string fileName ) : void

Saves the file.

비공개 메소드들

메소드 설명
GetLowestUnusedNewFileName ( ) : string

Gets a new file fileName not already present in the Html directory. Checks for existing files present in the Html directory with the new file fileName. Iterates and appends integer values to the filename until it finds on that is unused.

StripExtension ( string fileName ) : string

Removes a defined extension from filename and returns it. Does not affect null strings or other filenames.

메소드 상세

CreateNewFile() 공개 메소드

Creates a new file with the name.
public CreateNewFile ( string fileName ) : void
fileName string Name of file
리턴 void

GetCurrentFileUri() 공개 메소드

public GetCurrentFileUri ( ) : Uri
리턴 System.Uri

InsertComment() 공개 정적인 메소드

public static InsertComment ( System.Windows.Forms.HtmlDocument document, string comm ) : string
document System.Windows.Forms.HtmlDocument
comm string
리턴 string

LoadFiles() 공개 메소드

Reloads the files into memory. TODO: WAIT, WHAT? Every Html file in the directory is loaded into memory? And whenever a file is saved, the WHOLE LOT ARE LOADED INTO MEMORY AGAIN? SHAME ON YOU GOOD SIR.
public LoadFiles ( ) : void
리턴 void

QrCode() 공개 메소드

public QrCode ( string file ) : Image
file string
리턴 Image

RemoveFile() 공개 메소드

Remove the file from the wroking directory.
public RemoveFile ( string fileName ) : void
fileName string
리턴 void

RenameFile() 공개 메소드

Renames the file to a new name.
public RenameFile ( string oldName, string newName ) : void
oldName string The current name.
newName string The new name.
리턴 void

SaveFile() 공개 메소드

Saves the file.
public SaveFile ( string fileName ) : void
fileName string The filename of the file to save.
리턴 void