diff --git a/NoteMan.sln b/NoteMan.sln new file mode 100644 index 0000000..038949e --- /dev/null +++ b/NoteMan.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoteMan", "NoteMan\NoteMan.csproj", "{849E0B33-8F3A-4AD0-927D-0A5011006E86}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {849E0B33-8F3A-4AD0-927D-0A5011006E86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {849E0B33-8F3A-4AD0-927D-0A5011006E86}.Debug|Any CPU.Build.0 = Debug|Any CPU + {849E0B33-8F3A-4AD0-927D-0A5011006E86}.Release|Any CPU.ActiveCfg = Release|Any CPU + {849E0B33-8F3A-4AD0-927D-0A5011006E86}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/NoteMan/App.config b/NoteMan/App.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/NoteMan/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/NoteMan/Appointment.cs b/NoteMan/Appointment.cs new file mode 100644 index 0000000..0116188 --- /dev/null +++ b/NoteMan/Appointment.cs @@ -0,0 +1,40 @@ +using System; + +namespace NoteMan +{ + class Appointment : Element + { + private DateTime start; + private DateTime end; + + public Appointment() + { + start = new DateTime(); + end = new DateTime(); + } + + public Appointment(string title, string text, DateTime start, DateTime end) : base(title, text) + { + if (end.CompareTo(start) < 0) + { + Console.Out.WriteLine("DateTimeComparison: end < start!"); + throw new EndBeforeStartException(); + } + this.start = start; + this.end = end; + } + + + public void UpdateRecord(string title, string text, DateTime start, DateTime end) + { + if (end.CompareTo(start) < 0) + { + Console.Out.WriteLine("DateTimeComparison: end < start!"); + throw new EndBeforeStartException(); + } + base.UpdateRecord(title, text); + this.start = start; + this.end = end; + } + } +} diff --git a/NoteMan/Controller.cs b/NoteMan/Controller.cs new file mode 100644 index 0000000..ae725a7 --- /dev/null +++ b/NoteMan/Controller.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NoteMan +{ + class Controller + { + + + + } +} diff --git a/NoteMan/Data.cs b/NoteMan/Data.cs new file mode 100644 index 0000000..dd95653 --- /dev/null +++ b/NoteMan/Data.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NoteMan +{ + class Data + { + private string filename = null; + private List projects = new List(); + + public Data() { } + + public Data(string filename) + { + this.filename = filename; + // TODO: implement import! + } + + public void AddProject(string title) + { + projects.Add(new Project(title)); + } + } +} diff --git a/NoteMan/Element.cs b/NoteMan/Element.cs new file mode 100644 index 0000000..71b7289 --- /dev/null +++ b/NoteMan/Element.cs @@ -0,0 +1,53 @@ +using System; + +namespace NoteMan +{ + class Element + { + protected string Title; + protected string Text; + + public Element() + { + Title = ""; + Text = ""; + } + + public Element(string Title, string Text) + { + this.Title = Title; + this.Text = Text; + } + + public string GetTitle() + { + return Title; + } + + public void SetTitle(string title) + { + if (title.Length < 3) + { + Console.Out.WriteLine("Mininum Title length is 3!"); + throw new InvalidArgument(); + } + this.Title = title; + } + + public string GetText() + { + return Text; + } + + public void SetText(string text) + { + this.Text = text; + } + + public void UpdateRecord(string title, string text) + { + SetTitle(title); + SetText(text); + } + } +} diff --git a/NoteMan/EndBeforeStartException.cs b/NoteMan/EndBeforeStartException.cs new file mode 100644 index 0000000..8280182 --- /dev/null +++ b/NoteMan/EndBeforeStartException.cs @@ -0,0 +1,8 @@ +using System; + +namespace NoteMan +{ + class EndBeforeStartException : Exception + { + } +} diff --git a/NoteMan/Form1.Designer.cs b/NoteMan/Form1.Designer.cs new file mode 100644 index 0000000..af713b3 --- /dev/null +++ b/NoteMan/Form1.Designer.cs @@ -0,0 +1,740 @@ +namespace NoteMan +{ + partial class Form1 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripDropDownButton(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); + this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripDropDownButton3 = new System.Windows.Forms.ToolStripDropDownButton(); + this.newToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.deleteToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.listProjects = new System.Windows.Forms.ListBox(); + this.labelProjects = new System.Windows.Forms.Label(); + this.tabConrtolElements = new System.Windows.Forms.TabControl(); + this.tabNotes = new System.Windows.Forms.TabPage(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.listNotes = new System.Windows.Forms.ListBox(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.textNotesTitle = new System.Windows.Forms.TextBox(); + this.textNotesNote = new System.Windows.Forms.TextBox(); + this.tabAppointments = new System.Windows.Forms.TabPage(); + this.splitContainer3 = new System.Windows.Forms.SplitContainer(); + this.listAppointments = new System.Windows.Forms.ListBox(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.textAppointmentTitle = new System.Windows.Forms.TextBox(); + this.textAppointmentDescription = new System.Windows.Forms.TextBox(); + this.dateTimePickerAppointmentStart = new System.Windows.Forms.DateTimePicker(); + this.dateTimePickerAppointmentEnd = new System.Windows.Forms.DateTimePicker(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.tabTodos = new System.Windows.Forms.TabPage(); + this.splitContainer4 = new System.Windows.Forms.SplitContainer(); + this.listTodos = new System.Windows.Forms.ListBox(); + this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.textTodoTitle = new System.Windows.Forms.TextBox(); + this.textTodoDescription = new System.Windows.Forms.TextBox(); + this.dateTimePickerTodoDeadline = new System.Windows.Forms.DateTimePicker(); + this.label9 = new System.Windows.Forms.Label(); + this.toolStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.tabConrtolElements.SuspendLayout(); + this.tabNotes.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + this.tableLayoutPanel1.SuspendLayout(); + this.tabAppointments.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); + this.splitContainer3.Panel1.SuspendLayout(); + this.splitContainer3.Panel2.SuspendLayout(); + this.splitContainer3.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); + this.tabTodos.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); + this.splitContainer4.Panel1.SuspendLayout(); + this.splitContainer4.Panel2.SuspendLayout(); + this.splitContainer4.SuspendLayout(); + this.tableLayoutPanel3.SuspendLayout(); + this.SuspendLayout(); + // + // toolStrip1 + // + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); + this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripDropDownButton2, + this.toolStripDropDownButton1, + this.toolStripDropDownButton3}); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(778, 31); + this.toolStrip1.TabIndex = 0; + this.toolStrip1.Text = "toolStrip1"; + // + // toolStripDropDownButton2 + // + this.toolStripDropDownButton2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.saveToolStripMenuItem, + this.saveAsToolStripMenuItem, + this.openToolStripMenuItem, + this.toolStripSeparator2, + this.exitToolStripMenuItem}); + this.toolStripDropDownButton2.Image = global::NoteMan.Properties.Resources.media_playlist_repeat; + this.toolStripDropDownButton2.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripDropDownButton2.Name = "toolStripDropDownButton2"; + this.toolStripDropDownButton2.Size = new System.Drawing.Size(62, 28); + this.toolStripDropDownButton2.Text = "File"; + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.Image = global::NoteMan.Properties.Resources.document_save; + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + this.saveToolStripMenuItem.Size = new System.Drawing.Size(126, 22); + this.saveToolStripMenuItem.Text = "Save"; + // + // saveAsToolStripMenuItem + // + this.saveAsToolStripMenuItem.Image = global::NoteMan.Properties.Resources.document_save_as; + this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; + this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(126, 22); + this.saveAsToolStripMenuItem.Text = "Save As ..."; + // + // openToolStripMenuItem + // + this.openToolStripMenuItem.Image = global::NoteMan.Properties.Resources.document_open; + this.openToolStripMenuItem.Name = "openToolStripMenuItem"; + this.openToolStripMenuItem.Size = new System.Drawing.Size(126, 22); + this.openToolStripMenuItem.Text = "Open"; + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(123, 6); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Image = global::NoteMan.Properties.Resources.application_exit; + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(126, 22); + this.exitToolStripMenuItem.Text = "Exit"; + // + // toolStripDropDownButton1 + // + this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newToolStripMenuItem, + this.editToolStripMenuItem, + this.deleteToolStripMenuItem}); + this.toolStripDropDownButton1.Image = global::NoteMan.Properties.Resources.project_development; + this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; + this.toolStripDropDownButton1.Size = new System.Drawing.Size(81, 28); + this.toolStripDropDownButton1.Text = "Project"; + // + // newToolStripMenuItem + // + this.newToolStripMenuItem.Image = global::NoteMan.Properties.Resources.project_development_new_template; + this.newToolStripMenuItem.Name = "newToolStripMenuItem"; + this.newToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.newToolStripMenuItem.Text = "New"; + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.Image = global::NoteMan.Properties.Resources.project_development; + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.editToolStripMenuItem.Text = "Edit"; + // + // deleteToolStripMenuItem + // + this.deleteToolStripMenuItem.Image = global::NoteMan.Properties.Resources.project_development_close; + this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; + this.deleteToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.deleteToolStripMenuItem.Text = "Delete"; + // + // toolStripDropDownButton3 + // + this.toolStripDropDownButton3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newToolStripMenuItem1, + this.editToolStripMenuItem1, + this.deleteToolStripMenuItem1}); + this.toolStripDropDownButton3.Image = global::NoteMan.Properties.Resources.text_plain; + this.toolStripDropDownButton3.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripDropDownButton3.Name = "toolStripDropDownButton3"; + this.toolStripDropDownButton3.Size = new System.Drawing.Size(87, 28); + this.toolStripDropDownButton3.Text = "Element"; + // + // newToolStripMenuItem1 + // + this.newToolStripMenuItem1.Image = global::NoteMan.Properties.Resources.document_new; + this.newToolStripMenuItem1.Name = "newToolStripMenuItem1"; + this.newToolStripMenuItem1.Size = new System.Drawing.Size(107, 22); + this.newToolStripMenuItem1.Text = "New"; + // + // editToolStripMenuItem1 + // + this.editToolStripMenuItem1.Image = global::NoteMan.Properties.Resources.document_edit1; + this.editToolStripMenuItem1.Name = "editToolStripMenuItem1"; + this.editToolStripMenuItem1.Size = new System.Drawing.Size(107, 22); + this.editToolStripMenuItem1.Text = "Edit"; + // + // deleteToolStripMenuItem1 + // + this.deleteToolStripMenuItem1.Image = global::NoteMan.Properties.Resources.document_close; + this.deleteToolStripMenuItem1.Name = "deleteToolStripMenuItem1"; + this.deleteToolStripMenuItem1.Size = new System.Drawing.Size(107, 22); + this.deleteToolStripMenuItem1.Text = "Delete"; + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.Location = new System.Drawing.Point(0, 31); + this.splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.listProjects); + this.splitContainer1.Panel1.Controls.Add(this.labelProjects); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.tabConrtolElements); + this.splitContainer1.Size = new System.Drawing.Size(778, 567); + this.splitContainer1.SplitterDistance = 224; + this.splitContainer1.TabIndex = 1; + // + // listProjects + // + this.listProjects.Dock = System.Windows.Forms.DockStyle.Fill; + this.listProjects.FormattingEnabled = true; + this.listProjects.Location = new System.Drawing.Point(0, 17); + this.listProjects.Name = "listProjects"; + this.listProjects.Size = new System.Drawing.Size(224, 550); + this.listProjects.TabIndex = 1; + this.listProjects.SelectedIndexChanged += new System.EventHandler(this.listProjects_SelectedIndexChanged); + // + // labelProjects + // + this.labelProjects.AutoSize = true; + this.labelProjects.Dock = System.Windows.Forms.DockStyle.Top; + this.labelProjects.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelProjects.Location = new System.Drawing.Point(0, 0); + this.labelProjects.Name = "labelProjects"; + this.labelProjects.Size = new System.Drawing.Size(67, 17); + this.labelProjects.TabIndex = 0; + this.labelProjects.Text = "Projects"; + // + // tabConrtolElements + // + this.tabConrtolElements.Controls.Add(this.tabNotes); + this.tabConrtolElements.Controls.Add(this.tabAppointments); + this.tabConrtolElements.Controls.Add(this.tabTodos); + this.tabConrtolElements.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabConrtolElements.Location = new System.Drawing.Point(0, 0); + this.tabConrtolElements.Name = "tabConrtolElements"; + this.tabConrtolElements.SelectedIndex = 0; + this.tabConrtolElements.Size = new System.Drawing.Size(550, 567); + this.tabConrtolElements.TabIndex = 0; + // + // tabNotes + // + this.tabNotes.Controls.Add(this.splitContainer2); + this.tabNotes.ImageKey = "(Keine)"; + this.tabNotes.Location = new System.Drawing.Point(4, 22); + this.tabNotes.Name = "tabNotes"; + this.tabNotes.Padding = new System.Windows.Forms.Padding(3); + this.tabNotes.Size = new System.Drawing.Size(542, 541); + this.tabNotes.TabIndex = 0; + this.tabNotes.Text = "Notes"; + this.tabNotes.UseVisualStyleBackColor = true; + // + // splitContainer2 + // + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.Location = new System.Drawing.Point(3, 3); + this.splitContainer2.Name = "splitContainer2"; + this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.Controls.Add(this.listNotes); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.tableLayoutPanel1); + this.splitContainer2.Size = new System.Drawing.Size(536, 535); + this.splitContainer2.SplitterDistance = 372; + this.splitContainer2.TabIndex = 0; + // + // listNotes + // + this.listNotes.Dock = System.Windows.Forms.DockStyle.Fill; + this.listNotes.FormattingEnabled = true; + this.listNotes.Location = new System.Drawing.Point(0, 0); + this.listNotes.Name = "listNotes"; + this.listNotes.Size = new System.Drawing.Size(536, 372); + this.listNotes.TabIndex = 0; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 13.43284F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 86.56716F)); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.textNotesTitle, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.textNotesNote, 1, 1); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20.75472F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 79.24529F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(536, 159); + this.tableLayoutPanel1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Dock = System.Windows.Forms.DockStyle.Fill; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(66, 33); + this.label1.TabIndex = 0; + this.label1.Text = "Title"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label1.Click += new System.EventHandler(this.label1_Click); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Dock = System.Windows.Forms.DockStyle.Fill; + this.label2.Location = new System.Drawing.Point(3, 33); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(66, 126); + this.label2.TabIndex = 1; + this.label2.Text = "Note"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // textNotesTitle + // + this.textNotesTitle.Dock = System.Windows.Forms.DockStyle.Fill; + this.textNotesTitle.Location = new System.Drawing.Point(75, 3); + this.textNotesTitle.Name = "textNotesTitle"; + this.textNotesTitle.Size = new System.Drawing.Size(458, 20); + this.textNotesTitle.TabIndex = 2; + // + // textNotesNote + // + this.textNotesNote.Dock = System.Windows.Forms.DockStyle.Fill; + this.textNotesNote.Location = new System.Drawing.Point(75, 36); + this.textNotesNote.Multiline = true; + this.textNotesNote.Name = "textNotesNote"; + this.textNotesNote.Size = new System.Drawing.Size(458, 120); + this.textNotesNote.TabIndex = 3; + // + // tabAppointments + // + this.tabAppointments.Controls.Add(this.splitContainer3); + this.tabAppointments.Location = new System.Drawing.Point(4, 22); + this.tabAppointments.Name = "tabAppointments"; + this.tabAppointments.Padding = new System.Windows.Forms.Padding(3); + this.tabAppointments.Size = new System.Drawing.Size(542, 541); + this.tabAppointments.TabIndex = 1; + this.tabAppointments.Text = "Appointments"; + this.tabAppointments.UseVisualStyleBackColor = true; + // + // splitContainer3 + // + this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer3.Location = new System.Drawing.Point(3, 3); + this.splitContainer3.Name = "splitContainer3"; + this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer3.Panel1 + // + this.splitContainer3.Panel1.Controls.Add(this.listAppointments); + // + // splitContainer3.Panel2 + // + this.splitContainer3.Panel2.Controls.Add(this.tableLayoutPanel2); + this.splitContainer3.Size = new System.Drawing.Size(536, 535); + this.splitContainer3.SplitterDistance = 372; + this.splitContainer3.TabIndex = 0; + // + // listAppointments + // + this.listAppointments.Dock = System.Windows.Forms.DockStyle.Fill; + this.listAppointments.FormattingEnabled = true; + this.listAppointments.Location = new System.Drawing.Point(0, 0); + this.listAppointments.Name = "listAppointments"; + this.listAppointments.Size = new System.Drawing.Size(536, 372); + this.listAppointments.TabIndex = 0; + // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.ColumnCount = 2; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 13.43284F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 86.56716F)); + this.tableLayoutPanel2.Controls.Add(this.label3, 0, 0); + this.tableLayoutPanel2.Controls.Add(this.label4, 0, 1); + this.tableLayoutPanel2.Controls.Add(this.textAppointmentTitle, 1, 0); + this.tableLayoutPanel2.Controls.Add(this.textAppointmentDescription, 1, 1); + this.tableLayoutPanel2.Controls.Add(this.dateTimePickerAppointmentStart, 1, 2); + this.tableLayoutPanel2.Controls.Add(this.dateTimePickerAppointmentEnd, 1, 3); + this.tableLayoutPanel2.Controls.Add(this.label5, 0, 2); + this.tableLayoutPanel2.Controls.Add(this.label6, 0, 3); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 4; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20.75472F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 79.24529F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(536, 159); + this.tableLayoutPanel2.TabIndex = 1; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Dock = System.Windows.Forms.DockStyle.Fill; + this.label3.Location = new System.Drawing.Point(3, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(66, 24); + this.label3.TabIndex = 0; + this.label3.Text = "Title"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Dock = System.Windows.Forms.DockStyle.Fill; + this.label4.Location = new System.Drawing.Point(3, 24); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(66, 94); + this.label4.TabIndex = 1; + this.label4.Text = "Description"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label4.Click += new System.EventHandler(this.label4_Click); + // + // textAppointmentTitle + // + this.textAppointmentTitle.Dock = System.Windows.Forms.DockStyle.Fill; + this.textAppointmentTitle.Location = new System.Drawing.Point(75, 3); + this.textAppointmentTitle.Name = "textAppointmentTitle"; + this.textAppointmentTitle.Size = new System.Drawing.Size(458, 20); + this.textAppointmentTitle.TabIndex = 2; + // + // textAppointmentDescription + // + this.textAppointmentDescription.Dock = System.Windows.Forms.DockStyle.Fill; + this.textAppointmentDescription.Location = new System.Drawing.Point(75, 27); + this.textAppointmentDescription.Multiline = true; + this.textAppointmentDescription.Name = "textAppointmentDescription"; + this.textAppointmentDescription.Size = new System.Drawing.Size(458, 88); + this.textAppointmentDescription.TabIndex = 3; + // + // dateTimePickerAppointmentStart + // + this.dateTimePickerAppointmentStart.CustomFormat = "yyyy-MM-dd HH:mm"; + this.dateTimePickerAppointmentStart.Dock = System.Windows.Forms.DockStyle.Fill; + this.dateTimePickerAppointmentStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePickerAppointmentStart.Location = new System.Drawing.Point(75, 121); + this.dateTimePickerAppointmentStart.Name = "dateTimePickerAppointmentStart"; + this.dateTimePickerAppointmentStart.Size = new System.Drawing.Size(458, 20); + this.dateTimePickerAppointmentStart.TabIndex = 4; + // + // dateTimePickerAppointmentEnd + // + this.dateTimePickerAppointmentEnd.CustomFormat = "yyyy-MM-dd HH:mm"; + this.dateTimePickerAppointmentEnd.Dock = System.Windows.Forms.DockStyle.Fill; + this.dateTimePickerAppointmentEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePickerAppointmentEnd.Location = new System.Drawing.Point(75, 141); + this.dateTimePickerAppointmentEnd.Name = "dateTimePickerAppointmentEnd"; + this.dateTimePickerAppointmentEnd.Size = new System.Drawing.Size(458, 20); + this.dateTimePickerAppointmentEnd.TabIndex = 5; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Dock = System.Windows.Forms.DockStyle.Fill; + this.label5.Location = new System.Drawing.Point(3, 118); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(66, 20); + this.label5.TabIndex = 6; + this.label5.Text = "Start"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Dock = System.Windows.Forms.DockStyle.Fill; + this.label6.Location = new System.Drawing.Point(3, 138); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(66, 21); + this.label6.TabIndex = 7; + this.label6.Text = "End"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // tabTodos + // + this.tabTodos.Controls.Add(this.splitContainer4); + this.tabTodos.Location = new System.Drawing.Point(4, 22); + this.tabTodos.Name = "tabTodos"; + this.tabTodos.Padding = new System.Windows.Forms.Padding(3); + this.tabTodos.Size = new System.Drawing.Size(542, 541); + this.tabTodos.TabIndex = 2; + this.tabTodos.Text = "Todos"; + this.tabTodos.UseVisualStyleBackColor = true; + // + // splitContainer4 + // + this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer4.Location = new System.Drawing.Point(3, 3); + this.splitContainer4.Name = "splitContainer4"; + this.splitContainer4.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer4.Panel1 + // + this.splitContainer4.Panel1.Controls.Add(this.listTodos); + // + // splitContainer4.Panel2 + // + this.splitContainer4.Panel2.Controls.Add(this.tableLayoutPanel3); + this.splitContainer4.Size = new System.Drawing.Size(536, 535); + this.splitContainer4.SplitterDistance = 372; + this.splitContainer4.TabIndex = 0; + // + // listTodos + // + this.listTodos.Dock = System.Windows.Forms.DockStyle.Fill; + this.listTodos.FormattingEnabled = true; + this.listTodos.Location = new System.Drawing.Point(0, 0); + this.listTodos.Name = "listTodos"; + this.listTodos.Size = new System.Drawing.Size(536, 372); + this.listTodos.TabIndex = 0; + // + // tableLayoutPanel3 + // + this.tableLayoutPanel3.ColumnCount = 2; + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 13.43284F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 86.56716F)); + this.tableLayoutPanel3.Controls.Add(this.label7, 0, 0); + this.tableLayoutPanel3.Controls.Add(this.label8, 0, 1); + this.tableLayoutPanel3.Controls.Add(this.textTodoTitle, 1, 0); + this.tableLayoutPanel3.Controls.Add(this.textTodoDescription, 1, 1); + this.tableLayoutPanel3.Controls.Add(this.dateTimePickerTodoDeadline, 1, 2); + this.tableLayoutPanel3.Controls.Add(this.label9, 0, 2); + this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel3.Name = "tableLayoutPanel3"; + this.tableLayoutPanel3.RowCount = 3; + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20.75472F)); + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 79.24529F)); + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel3.Size = new System.Drawing.Size(536, 159); + this.tableLayoutPanel3.TabIndex = 2; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Dock = System.Windows.Forms.DockStyle.Fill; + this.label7.Location = new System.Drawing.Point(3, 0); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(66, 28); + this.label7.TabIndex = 0; + this.label7.Text = "Title"; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Dock = System.Windows.Forms.DockStyle.Fill; + this.label8.Location = new System.Drawing.Point(3, 28); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(66, 110); + this.label8.TabIndex = 1; + this.label8.Text = "Description"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // textTodoTitle + // + this.textTodoTitle.Dock = System.Windows.Forms.DockStyle.Fill; + this.textTodoTitle.Location = new System.Drawing.Point(75, 3); + this.textTodoTitle.Name = "textTodoTitle"; + this.textTodoTitle.Size = new System.Drawing.Size(458, 20); + this.textTodoTitle.TabIndex = 2; + // + // textTodoDescription + // + this.textTodoDescription.Dock = System.Windows.Forms.DockStyle.Fill; + this.textTodoDescription.Location = new System.Drawing.Point(75, 31); + this.textTodoDescription.Multiline = true; + this.textTodoDescription.Name = "textTodoDescription"; + this.textTodoDescription.Size = new System.Drawing.Size(458, 104); + this.textTodoDescription.TabIndex = 3; + // + // dateTimePickerTodoDeadline + // + this.dateTimePickerTodoDeadline.CustomFormat = "yyyy-MM-dd HH:mm"; + this.dateTimePickerTodoDeadline.Dock = System.Windows.Forms.DockStyle.Fill; + this.dateTimePickerTodoDeadline.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePickerTodoDeadline.Location = new System.Drawing.Point(75, 141); + this.dateTimePickerTodoDeadline.Name = "dateTimePickerTodoDeadline"; + this.dateTimePickerTodoDeadline.Size = new System.Drawing.Size(458, 20); + this.dateTimePickerTodoDeadline.TabIndex = 4; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Dock = System.Windows.Forms.DockStyle.Fill; + this.label9.Location = new System.Drawing.Point(3, 138); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(66, 21); + this.label9.TabIndex = 6; + this.label9.Text = "Deadline"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label9.Click += new System.EventHandler(this.label9_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(778, 598); + this.Controls.Add(this.splitContainer1); + this.Controls.Add(this.toolStrip1); + this.Name = "Form1"; + this.Text = "NoteMan"; + this.toolStrip1.ResumeLayout(false); + this.toolStrip1.PerformLayout(); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel1.PerformLayout(); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.tabConrtolElements.ResumeLayout(false); + this.tabNotes.ResumeLayout(false); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + this.tableLayoutPanel1.ResumeLayout(false); + this.tableLayoutPanel1.PerformLayout(); + this.tabAppointments.ResumeLayout(false); + this.splitContainer3.Panel1.ResumeLayout(false); + this.splitContainer3.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); + this.splitContainer3.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + this.tableLayoutPanel2.PerformLayout(); + this.tabTodos.ResumeLayout(false); + this.splitContainer4.Panel1.ResumeLayout(false); + this.splitContainer4.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); + this.splitContainer4.ResumeLayout(false); + this.tableLayoutPanel3.ResumeLayout(false); + this.tableLayoutPanel3.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.TabControl tabConrtolElements; + private System.Windows.Forms.TabPage tabNotes; + private System.Windows.Forms.SplitContainer splitContainer2; + private System.Windows.Forms.TabPage tabAppointments; + private System.Windows.Forms.SplitContainer splitContainer3; + private System.Windows.Forms.TabPage tabTodos; + private System.Windows.Forms.SplitContainer splitContainer4; + private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton2; + private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; + private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton1; + private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem; + private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton3; + private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem1; + private System.Windows.Forms.ListBox listProjects; + private System.Windows.Forms.Label labelProjects; + private System.Windows.Forms.ListBox listNotes; + private System.Windows.Forms.ListBox listAppointments; + private System.Windows.Forms.ListBox listTodos; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textNotesTitle; + private System.Windows.Forms.TextBox textNotesNote; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TextBox textAppointmentTitle; + private System.Windows.Forms.TextBox textAppointmentDescription; + private System.Windows.Forms.DateTimePicker dateTimePickerAppointmentStart; + private System.Windows.Forms.DateTimePicker dateTimePickerAppointmentEnd; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.TextBox textTodoTitle; + private System.Windows.Forms.TextBox textTodoDescription; + private System.Windows.Forms.DateTimePicker dateTimePickerTodoDeadline; + private System.Windows.Forms.Label label9; + } +} + diff --git a/NoteMan/Form1.cs b/NoteMan/Form1.cs new file mode 100644 index 0000000..5ae3356 --- /dev/null +++ b/NoteMan/Form1.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace NoteMan +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void label1_Click(object sender, EventArgs e) + { + + } + + private void label4_Click(object sender, EventArgs e) + { + + } + + private void label9_Click(object sender, EventArgs e) + { + + } + + private void listProjects_SelectedIndexChanged(object sender, EventArgs e) + { + //listProjects.SelectedItem(); + } + } +} diff --git a/NoteMan/Form1.resx b/NoteMan/Form1.resx new file mode 100644 index 0000000..5da7a24 --- /dev/null +++ b/NoteMan/Form1.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/NoteMan/InvalidArgument.cs b/NoteMan/InvalidArgument.cs new file mode 100644 index 0000000..db4973c --- /dev/null +++ b/NoteMan/InvalidArgument.cs @@ -0,0 +1,8 @@ +using System; + +namespace NoteMan +{ + class InvalidArgument : Exception + { + } +} diff --git a/NoteMan/Note.cs b/NoteMan/Note.cs new file mode 100644 index 0000000..77d8bac --- /dev/null +++ b/NoteMan/Note.cs @@ -0,0 +1,8 @@ +namespace NoteMan +{ + class Note : Element + { + public Note() : base() { } + public Note(string title, string text) : base(title, text) { } + } +} diff --git a/NoteMan/NoteMan.csproj b/NoteMan/NoteMan.csproj new file mode 100644 index 0000000..fad69b1 --- /dev/null +++ b/NoteMan/NoteMan.csproj @@ -0,0 +1,151 @@ + + + + + Debug + AnyCPU + {849E0B33-8F3A-4AD0-927D-0A5011006E86} + WinExe + Properties + NoteMan + NoteMan + v4.5.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/NoteMan/Program.cs b/NoteMan/Program.cs new file mode 100644 index 0000000..a520ff1 --- /dev/null +++ b/NoteMan/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace NoteMan +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/NoteMan/Project.cs b/NoteMan/Project.cs new file mode 100644 index 0000000..66fca3e --- /dev/null +++ b/NoteMan/Project.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace NoteMan +{ + class Project + { + private string title; + private List elements = new List(); + + public Project(string title) + { + SetTitle(title); + } + + private string GetTitle() + { + return title; + } + + private void SetTitle(string title) + { + if (title.Length < 3) + { + Console.Out.WriteLine("Mininum Title length is 3!"); + throw new InvalidArgument(); + } + this.title = title; + } + } +} diff --git a/NoteMan/Properties/AssemblyInfo.cs b/NoteMan/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b37f55a --- /dev/null +++ b/NoteMan/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("NoteMan")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("NoteMan")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar +// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("849e0b33-8f3a-4ad0-927d-0a5011006e86")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/NoteMan/Properties/Resources.Designer.cs b/NoteMan/Properties/Resources.Designer.cs new file mode 100644 index 0000000..08f8089 --- /dev/null +++ b/NoteMan/Properties/Resources.Designer.cs @@ -0,0 +1,233 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace NoteMan.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NoteMan.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap application_exit { + get { + object obj = ResourceManager.GetObject("application-exit", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap dialog_cancel { + get { + object obj = ResourceManager.GetObject("dialog-cancel", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap dialog_close { + get { + object obj = ResourceManager.GetObject("dialog-close", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap dialog_ok { + get { + object obj = ResourceManager.GetObject("dialog-ok", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap dialog_ok_apply { + get { + object obj = ResourceManager.GetObject("dialog-ok-apply", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_close { + get { + object obj = ResourceManager.GetObject("document-close", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_edit { + get { + object obj = ResourceManager.GetObject("document-edit", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_edit1 { + get { + object obj = ResourceManager.GetObject("document-edit1", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_new { + get { + object obj = ResourceManager.GetObject("document-new", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_open { + get { + object obj = ResourceManager.GetObject("document-open", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_save { + get { + object obj = ResourceManager.GetObject("document-save", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_save_as { + get { + object obj = ResourceManager.GetObject("document-save-as", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap media_playlist_repeat { + get { + object obj = ResourceManager.GetObject("media-playlist-repeat", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap project_development { + get { + object obj = ResourceManager.GetObject("project-development", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap project_development_close { + get { + object obj = ResourceManager.GetObject("project-development-close", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap project_development_new_template { + get { + object obj = ResourceManager.GetObject("project-development-new-template", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap text_plain { + get { + object obj = ResourceManager.GetObject("Text-plain", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/NoteMan/Properties/Resources.resx b/NoteMan/Properties/Resources.resx new file mode 100644 index 0000000..ee2e42a --- /dev/null +++ b/NoteMan/Properties/Resources.resx @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\dialog-ok.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\text-plain.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document-save-as.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document-edit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document-new.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\dialog-cancel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document-save.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\dialog-close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document-close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\dialog-ok-apply.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document-edit1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\project-development.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\project-development-new-template.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\project-development-close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\application-exit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document-open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\media-playlist-repeat.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/NoteMan/Properties/Settings.Designer.cs b/NoteMan/Properties/Settings.Designer.cs new file mode 100644 index 0000000..ecbb129 --- /dev/null +++ b/NoteMan/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace NoteMan.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/NoteMan/Properties/Settings.settings b/NoteMan/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/NoteMan/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/NoteMan/Resources/application-exit.png b/NoteMan/Resources/application-exit.png new file mode 100644 index 0000000..dd76354 Binary files /dev/null and b/NoteMan/Resources/application-exit.png differ diff --git a/NoteMan/Resources/dialog-cancel.png b/NoteMan/Resources/dialog-cancel.png new file mode 100644 index 0000000..6ce7961 Binary files /dev/null and b/NoteMan/Resources/dialog-cancel.png differ diff --git a/NoteMan/Resources/dialog-close.png b/NoteMan/Resources/dialog-close.png new file mode 100644 index 0000000..b049b68 Binary files /dev/null and b/NoteMan/Resources/dialog-close.png differ diff --git a/NoteMan/Resources/dialog-ok-apply.png b/NoteMan/Resources/dialog-ok-apply.png new file mode 100644 index 0000000..0f3153c Binary files /dev/null and b/NoteMan/Resources/dialog-ok-apply.png differ diff --git a/NoteMan/Resources/dialog-ok.png b/NoteMan/Resources/dialog-ok.png new file mode 100644 index 0000000..bcb4367 Binary files /dev/null and b/NoteMan/Resources/dialog-ok.png differ diff --git a/NoteMan/Resources/document-close.png b/NoteMan/Resources/document-close.png new file mode 100644 index 0000000..23b0947 Binary files /dev/null and b/NoteMan/Resources/document-close.png differ diff --git a/NoteMan/Resources/document-edit.png b/NoteMan/Resources/document-edit.png new file mode 100644 index 0000000..a0ec6b7 Binary files /dev/null and b/NoteMan/Resources/document-edit.png differ diff --git a/NoteMan/Resources/document-edit1.png b/NoteMan/Resources/document-edit1.png new file mode 100644 index 0000000..c5883ac Binary files /dev/null and b/NoteMan/Resources/document-edit1.png differ diff --git a/NoteMan/Resources/document-new.png b/NoteMan/Resources/document-new.png new file mode 100644 index 0000000..3d0f5cc Binary files /dev/null and b/NoteMan/Resources/document-new.png differ diff --git a/NoteMan/Resources/document-open.png b/NoteMan/Resources/document-open.png new file mode 100644 index 0000000..8ba5441 Binary files /dev/null and b/NoteMan/Resources/document-open.png differ diff --git a/NoteMan/Resources/document-save-as.png b/NoteMan/Resources/document-save-as.png new file mode 100644 index 0000000..9695a56 Binary files /dev/null and b/NoteMan/Resources/document-save-as.png differ diff --git a/NoteMan/Resources/document-save.png b/NoteMan/Resources/document-save.png new file mode 100644 index 0000000..7fa489c Binary files /dev/null and b/NoteMan/Resources/document-save.png differ diff --git a/NoteMan/Resources/media-playlist-repeat.png b/NoteMan/Resources/media-playlist-repeat.png new file mode 100644 index 0000000..7000789 Binary files /dev/null and b/NoteMan/Resources/media-playlist-repeat.png differ diff --git a/NoteMan/Resources/project-development-close.png b/NoteMan/Resources/project-development-close.png new file mode 100644 index 0000000..56f5c64 Binary files /dev/null and b/NoteMan/Resources/project-development-close.png differ diff --git a/NoteMan/Resources/project-development-new-template.png b/NoteMan/Resources/project-development-new-template.png new file mode 100644 index 0000000..5b8f28e Binary files /dev/null and b/NoteMan/Resources/project-development-new-template.png differ diff --git a/NoteMan/Resources/project-development.png b/NoteMan/Resources/project-development.png new file mode 100644 index 0000000..a7dd5e6 Binary files /dev/null and b/NoteMan/Resources/project-development.png differ diff --git a/NoteMan/Resources/text-plain.png b/NoteMan/Resources/text-plain.png new file mode 100644 index 0000000..f4049cc Binary files /dev/null and b/NoteMan/Resources/text-plain.png differ diff --git a/NoteMan/Todo.cs b/NoteMan/Todo.cs new file mode 100644 index 0000000..3c7947e --- /dev/null +++ b/NoteMan/Todo.cs @@ -0,0 +1,30 @@ +using System; + +namespace NoteMan +{ + class Todo : Element + { + private DateTime deadline; + + public Todo() : base() + { + deadline = new DateTime(); + } + + public Todo(string title, string text, DateTime deadline) : base(title, text) + { + this.deadline = deadline; + } + + public void UpdateRecord(string title, string text, DateTime deadline) + { + base.UpdateRecord(title, text); + this.deadline = deadline; + } + + public DateTime GetDeadline() + { + return deadline; + } + } +}