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); } }
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); }
public SeqPosition(LibPos lp) { ap = new ArenaPosition(lp.X, lp.Y, lp.Z); repeat = lp.repeat; }
public RandomPosition(LibPos lp, int accumulator) { lowEdge = accumulator; highEdge = lp.chance + accumulator; ap = new ArenaPosition(lp.X, lp.Y, lp.Z); }