Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Log // Log Entry object
- {
- string title, content;
- DateTime time;
- public Log(string title, string content) // Log Entry constructor
- {
- this.title = title;
- this.content = content;
- time = DateTime.Now;
- }
- public string Title() // get the entry title.
- {
- return title;
- }
- public string Content() // Get the entry content.
- {
- return content;
- }
- public DateTime Time() // Get the entry time.
- {
- return time;
- }
- public void SetTime(DateTime time) // set the entry time.
- {
- this.time = time;
- }
- public void SetTitle(string title) // Set the entry title.
- {
- this.title = title;
- }
- public void SetContent(string content) // Set the entry content.
- {
- this.content = content;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement