Exemple #1
0
        private void link_Add_Click(object sender, EventArgs e)
        {
            var titb = new TaskItemTextBox();

            titb.DeleteEvent += titb_DeleteEvent;
            this.contentPanel.Controls.Add(titb);
            this._contentList.Add(titb);
            this.Focus();

            this.metroStyleManager.Update();
        }
Exemple #2
0
        protected override void OnLoad(EventArgs e)
        {
            this.Text = _dailyTask.Title;

            if (this._dailyTask.TaskItems != null)
            {
                foreach (TaskItem item in this._dailyTask.TaskItems)
                {
                    var titb = new TaskItemTextBox();
                    titb.DeleteEvent += (s, eve) => this.metroPanel1.Controls.Remove(titb);
                    titb.ContentDataBindings("Text", item, "Content");
                    this.metroPanel1.Controls.Add(titb);
                }
            }

            base.OnLoad(e);
        }
Exemple #3
0
        protected override void OnLoad(EventArgs e)
        {
            this.Text = _dailyTask.Title;

            if (this._dailyTask.TaskItems != null)
            {
                foreach (TaskItem item in this._dailyTask.TaskItems)
                {
                    var titb = new TaskItemTextBox();
                    titb.DeleteEvent += titb_DeleteEvent;
                    titb.ContentDataBindings("Text", item, "Content");
                    titb.CheckDataBindings("Checked", item, "IsFinish");
                    this.contentPanel.Controls.Add(titb);
                    _contentList.Add(titb);
                }

                this.metroStyleManager.Update();
            }

            this.link_Ok.Select();
            base.OnLoad(e);
        }