コード例 #1
0
        private void frTaskManagement_Load(object sender, EventArgs e)
        {
            //load ListTask
            for (int i = 0; i < _listTasks.Count; i++)
            {
                string username = "";
                for (int j = 0; j < _listTasks[i].listUsers.Count; j++)
                {
                    username = username + _listTasks[i].listUsers[j].ToString() + " ";
                }

                ListViewItem ev = new ListViewItem(_listTasks[i].ID.ToString());
                ev.SubItems.Add(new ListViewItem.ListViewSubItem(ev, _listTasks[i].title));
                ev.SubItems.Add(new ListViewItem.ListViewSubItem(ev, _listTasks[i].timeStart.ToString()));
                ev.SubItems.Add(new ListViewItem.ListViewSubItem(ev, _listTasks[i].timeEnd.ToString()));
                ev.SubItems.Add(new ListViewItem.ListViewSubItem(ev, _listTasks[i].description));
                ev.SubItems.Add(new ListViewItem.ListViewSubItem(ev, username));

                this.listEvent.Items.Add(ev);
            }
            this.ID = this._listTasks.Count + 1;

            drawNote = new DrawNote();
            timer1.Start();

            this.help.SetShowHelp(this.txtTitle, true);
            this.help.SetHelpString(this.txtTitle, "Enter the name of the incoming event");

            this.help.SetShowHelp(this.rtxtDescription, true);
            this.help.SetHelpString(this.rtxtDescription, "Enter all necessary informations of the incoming event");

            this.help.SetShowHelp(this.datetimeStart, true);
            this.help.SetHelpString(this.datetimeStart, "Enter Date and Time that the incoming event will begin");

            this.help.SetShowHelp(this.datetimeEnd, true);
            this.help.SetHelpString(this.datetimeEnd, "Enter Date and Time that the incoming event will end");

            this.help.SetShowHelp(this.btnNewNote, true);
            this.help.SetHelpString(this.btnNewNote, "Draw necessary Note");

            this.help.SetShowHelp(this.splitContainer2, true);
            this.help.SetHelpString(this.splitContainer2, "Draw necessary Note");
        }
コード例 #2
0
        private void frTaskManagement_Load(object sender, EventArgs e)
        {
            ID       = 1;
            drawNote = new DrawNote();
            timer1.Start();

            this.help.SetShowHelp(this.txtTitle, true);
            this.help.SetHelpString(this.txtTitle, "Enter the name of the incoming event");

            this.help.SetShowHelp(this.rtxtDescription, true);
            this.help.SetHelpString(this.rtxtDescription, "Enter all necessary informations of the incoming event");

            this.help.SetShowHelp(this.datetimeStart, true);
            this.help.SetHelpString(this.datetimeStart, "Enter Date and Time that the incoming event will begin");

            this.help.SetShowHelp(this.datetimeEnd, true);
            this.help.SetHelpString(this.datetimeEnd, "Enter Date and Time that the incoming event will end");

            this.help.SetShowHelp(this.btnNewNote, true);
            this.help.SetHelpString(this.btnNewNote, "Draw necessary Note");

            this.help.SetShowHelp(this.splitContainer2, true);
            this.help.SetHelpString(this.splitContainer2, "Draw necessary Note");
        }