Example #1
0
        private void posLibDataGrid_RowEditEnding_1(object sender, DataGridRowEditEndingEventArgs e)
        {
            LibPos lp = new LibPos();

            lp = e.Row.Item as LibPos;
            if (lp.posName == "")
            {
                currentOUS.posLibrary.Remove(lp);
            }
        }
Example #2
0
        private void add2LibButton_Click(object sender, RoutedEventArgs e)
        {
            LibPos lp = new LibPos();

            lp.posName = "newly added pos.";
            lp.X       = currentAP.X;
            lp.Y       = currentAP.Y;
            lp.Z       = currentAP.Z;

            currentOUS.posLibrary.Add(lp);
        }
Example #3
0
 public SeqPosition(LibPos lp)
 {
     ap     = new ArenaPosition(lp.X, lp.Y, lp.Z);
     repeat = lp.repeat;
 }
Example #4
0
 public RandomPosition(LibPos lp, int accumulator)
 {
     lowEdge  = accumulator;
     highEdge = lp.chance + accumulator;
     ap       = new ArenaPosition(lp.X, lp.Y, lp.Z);
 }