예제 #1
0
 private void SortingMv()
 {
     for (int i = 0; i < MVList.Count; i++)
     {
         MethodVariable mv = MVList[i];
         mv.Location = new Point(AutoScrollPosition.X, AutoScrollPosition.Y + 40 * i);
     }
 }
예제 #2
0
        private void Button4_Click(object sender, EventArgs e)
        {
            MethodVariable MV = new MethodVariable();

            MV.Name = "MV" + IndexNumber.ToString();
            this.panel1.Controls.Add(MV);
            MVList.Add(MV);
            SortingMv();
        }
예제 #3
0
 public void DelButton(MethodVariable MV)
 {
     //int X;
     //int Y;
     //StatementBlock SB = (StatementBlock)this.Parent;
     //X = SB.AutoScrollPosition.X;
     //Y = SB.AutoScrollPosition.Y;
     panel1.Controls.Remove(MV);
     MVList.Remove(MV);
     SortingMv();
     //SB.AutoScrollPosition = new Point(X, Y);
 }