冲刺第三天

摘要:

           今天晚上八点我们进行了站立会议

           此次站立会议我们开了30分钟

参加会议的人员: 黄睿麒 侯熙磊

会议内容:对今天设置控件属性与对应代码进行了讨论,对怎么输入便签和查找便签该怎样实现才能符合要求

昨天编写的关于便签输入方面 今天继续完善便签的输入和临时便签的录入并编写删除便签的代码以及便签的查找,明天继续完善便签的查找 

 

private void 临时便签ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
           
                CCSkinMain MessageboxForm = new CCSkinMain();
                MessageboxForm.SkinOpacity = Convert.ToDouble(toumingdu);
                MessageboxForm.MinimizeBox = false;
                MessageboxForm.MaximizeBox = false;
                MessageboxForm.ControlBox = true;
                MessageboxForm.Location = new Point(100, 200);
                MessageboxForm.Width = 220;
                MessageboxForm.Height = 300;
                MessageboxForm.BackColor = ColorTranslator.FromHtml(backcolor);
                MessageboxForm.Text = "临时便签退出后会被清空";
                MessageboxForm.ControlBox = false;
                MessageboxForm.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
                MessageboxForm.ShowDrawIcon = false;


                RichTextBox rt = new RichTextBox();
                rt.BorderStyle = BorderStyle.None;
                rt.BackColor = ColorTranslator.FromHtml(backcolor);
                rt.Text = "";
                rt.Left = 20;
                rt.Top = 30;
                rt.Parent = MessageboxForm;
                rt.Size = new Size(150, 280);
                MessageboxForm.Show();
            }

        private void 新建临时标签ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            临时便签ToolStripMenuItem1_Click(null, EventArgs.Empty);

        }

 

        private void 删除便签ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (skinTabControl1.SelectedIndex == 0)
            {
                WriteIntoText("宠or植:" + DateTime.Now .ToString ()+ skinListBox1.SelectedItem.ToString (), "回忆站.txt");
                DelectText(skinListBox1, skinListBox1.SelectedIndex, "宠or植.txt");
                skinListBox1.Items .RemoveAt  ( skinListBox1 .SelectedIndex );
            }
            if (skinTabControl1.SelectedIndex == 1)
            {
                WriteIntoText("注意事项:" + DateTime.Now.ToString() + skinListBox2.SelectedItem.ToString(), "回忆站.txt");
                DelectText(skinListBox2, skinListBox2.SelectedIndex, "注意事项.txt");
                skinListBox2.Items.RemoveAt(skinListBox2.SelectedIndex);
            }
            if (skinTabControl1.SelectedIndex == 2)
            {
                WriteIntoText("总结:" + DateTime.Now.ToString() + skinListBox3.SelectedItem.ToString(), "回忆站.txt");
                DelectText(skinListBox3, skinListBox3.SelectedIndex, "总结.txt");
                skinListBox3.Items.RemoveAt(skinListBox3.SelectedIndex);
            }
            else
            {
                return;
            }
        }

 

posted @ 2018-11-17 21:24  DAMIAO  阅读(120)  评论(0编辑  收藏  举报