示例#1
0
        private snippet GetSnippet()
        {
            snippet Snippet = new snippet
            {
                Text    = this.Writer_Main_Text.Text,
                Project = this.Project_Text.Text,
                Name    = this.Name_Text.Text,
                //CreationDate = DateTime.Now.ToString("dd.MM.yy"),
                LastEdit = DateTime.Now.ToString("dd.MM.yy"),
            };

            return(Snippet);
        }
示例#2
0
        private void Update_Writer(int index, Project_File project)
        {
            /*
             * Writes the information of an indexed document of a project
             * into the writer interface.
             */
            snippet Snippet = project.snippets[index];

            this.Name_Text.Text        = project.snippets[index].Name;
            this.Writer_Main_Text.Text = project.snippets[index].Text;
            this.Project_Text.Text     = project.snippets[index].Project;
            //this.Character_Count_Text.Text) = project.Snippets[index].CharacterCount
            this.WordCount_Text.Text = Convert.ToString(project.snippets[index].WordCount);
            Update_Selection(project);
        }