示例#1
0
        private void LogDateTimePicker_ValueChanged(object sender, EventArgs e)
        {
            //fill in notes
            string[]     lglines;
            LogXDataBase lgdb = new LogXDataBase();

            char[] splt  = { '*' };
            string lgstr = lgdb.GetNote(LogDateTimePicker.Value.ToShortDateString());

            if (lgstr != null)
            {
                lglines = lgstr.Split(splt, StringSplitOptions.RemoveEmptyEntries);
                foreach (string lg in lglines)
                {
                    NotesTextBox.AppendText("*" + lg + "\r\n");
                }
                return;
            }
            return;
        }