今天早上八点我们进行了站立会议
此次站立会议我们开了30分钟
参加会议的人员: 黄睿麒 侯熙磊
会议内容: 针对之前查看便签显示不完全的问题,和运行程序删除便签,查看便签出现的报错进行了讨论修改,对清空回收站的实现进行了讨论
黄睿麒:
今天我修改了便签为空时查看删除便签时出现的报错行为,修改了便签字数太长就会显示不完全的问题,添加了输入便签后自动添加时间的功能,明天尝试恢复回收站内内容
private string CusterFormControl1(string Caption, string title, string text1, string type) { CCSkinMain MessageboxForm = new CCSkinMain(); MessageboxForm.MinimizeBox = false; MessageboxForm.MaximizeBox = false; MessageboxForm.ControlBox = true; MessageboxForm.Location = new Point(100, 200); MessageboxForm.Width = 300; MessageboxForm.Height = 150; MessageboxForm.BackColor = ColorTranslator.FromHtml(backcolor); // MessageboxForm.BackgroundImage = Image.FromFile(filepath); MessageboxForm.Text = Caption; MessageboxForm.ControlBox = false; MessageboxForm.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; MessageboxForm.ShowDrawIcon = false; SkinLabel lbtitle = new SkinLabel(); lbtitle.Text = title; lbtitle.Left = 20; lbtitle.Top = 25; lbtitle.Parent = MessageboxForm; lbtitle.Size = new Size(120, 21); lbtitle.AutoSize = true; RichTextBox tbtext = new RichTextBox (); tbtext .BackColor = ColorTranslator.FromHtml(backcolor); tbtext.BorderStyle = BorderStyle.None; tbtext.Text = text1; tbtext.Left = 30; tbtext.Top = 30; tbtext.Width = 250; tbtext.Height =70; tbtext.Parent = MessageboxForm; Button btnok = new Button(); btnok.Left = 110; btnok.Top = 120; btnok.Parent = MessageboxForm; btnok.Text = "确定"; MessageboxForm.AcceptButton = btnok; btnok.DialogResult = DialogResult.OK; btnok.FlatStyle = FlatStyle.Flat; //btnok.ForeColor = Color(); btnok.BackColor = Color.Transparent; btnok.FlatAppearance.BorderSize = 1; try { if (MessageboxForm.ShowDialog() == DialogResult.OK) { notifyIcon1.Visible = true; return tbtext.Text.Trim(); } else { this.Close(); return null; } } catch (Exception ex) { MessageBox.Show(ex.Message); return null; } finally { MessageboxForm.Dispose(); } }
private void 查看便签ToolStripMenuItem_Click(object sender, EventArgs e) { if (skinTabControl1 .SelectedIndex ==0) { if (skinListBox1.SelectedItem != null) { CusterFormControl1("标签信息","" , skinListBox1.SelectedItem.ToString(), ""); } else { CusterFormControl1("错误提示", "\n无此类便签,请新建一个再查看吧", "", ""); } } if (skinTabControl1.SelectedIndex ==1) { if (skinListBox2.SelectedItem!= null) { CusterFormControl1("标签信息","", skinListBox2.SelectedItem.ToString(), ""); } else { CusterFormControl1("错误提示", "\n无此类便签,请新建一个再查看吧", "", ""); } } if (skinTabControl1.SelectedIndex ==2) { if (skinListBox3.SelectedItem != null) { CusterFormControl1("标签信息","", skinListBox3.SelectedItem.ToString(), ""); } else { CusterFormControl1("错误提示", "\n无此类便签,请新建一个再查看吧", "", ""); } } }
private void 宠or植便签ToolStripMenuItem_Click(object sender, EventArgs e) { try { SkinListBoxItem rt = new SkinListBoxItem(InputForm("请输入" + DateTime.Now + "的" + skinTabControl1.TabPages[0].Text + "便签内容", "", "")); skinListBox1.Items.Add(rt); WriteIntoText(DateTime.Now +"\0\0"+ rt.ToString(), "宠or植.txt"); } catch (Exception ) { return; } } private void 注意事项便签ToolStripMenuItem_Click(object sender, EventArgs e) { try { SkinListBoxItem rt = new SkinListBoxItem(InputForm("请输入" + DateTime.Now+"的" +skinTabControl1.TabPages[1].Text + "便签内容", "", "")); skinListBox2.Items.Add(rt); WriteIntoText(DateTime.Now + "\0\0" + rt.ToString(), "注意事项.txt"); } catch (Exception ) { return; } }
private void 删除便签ToolStripMenuItem_Click(object sender, EventArgs e) { if (skinTabControl1.SelectedIndex == 0) { if (skinListBox1.SelectedItem != null) { WriteIntoText("宠or植:" + skinListBox1.SelectedItem.ToString(), "回忆站.txt"); DelectText(skinListBox1, skinListBox1.SelectedIndex, "宠or植.txt"); skinListBox1.Items.RemoveAt(skinListBox1.SelectedIndex); } else { CusterFormControl("错误提示", "\n\n无此类便签,不需要删除", "", ""); } } if (skinTabControl1.SelectedIndex == 1) { if (skinListBox2.SelectedItem != null) { WriteIntoText("注意事项:" + skinListBox2.SelectedItem.ToString(), "回忆站.txt"); DelectText(skinListBox2, skinListBox2.SelectedIndex, "注意事项.txt"); skinListBox2.Items.RemoveAt(skinListBox2.SelectedIndex); } else { CusterFormControl("错误提示", "\n\n无此类便签,不需要删除", "", ""); } } if (skinTabControl1.SelectedIndex == 2) { if (skinListBox3.SelectedItem != null) { WriteIntoText("总结:" + skinListBox3.SelectedItem.ToString(), "回忆站.txt"); DelectText(skinListBox3, skinListBox3.SelectedIndex, "总结.txt"); skinListBox3.Items.RemoveAt(skinListBox3.SelectedIndex); } else { CusterFormControl("错误提示", "\n\n无此类便签,不需要删除", "", ""); } } }
侯熙磊:
今天我对便签加上了清空回收站功能,明天我将对软件进行添加图片功能分析。
private void 清空回收站ToolStripMenuItem_Click(object sender, EventArgs e)
{ DelectText(skinListBox3, skinListBox3.SelectedIndex, "回忆站.txt");}