示例#1
0
        public JishEntry AddEntry(string left, string right)
        {
            JishEntry ent = new JishEntry(this, left, right);

            if (lastEntry == null)
            {
                ent.Location = new Point(0, 0);
            }
            else
            {
                ent.Location = new Point(0, lastEntry.Location.Y + ent.Size.Height + 2);
            }
            lastEntry = ent;
            panel1.Controls.Add(ent);
            return(ent);
        }
示例#2
0
 public void RemoveEntry(JishEntry e)
 {
     panel1.Controls.Remove(e);
 }
示例#3
0
 public JishEdit()
 {
     InitializeComponent();
     lastEntry = null;
 }