private void btnSearchPosition_Click(object sender, EventArgs e) { PositionForm searchPosition = new PositionForm(dbContext, true); searchPosition.positionSaved += new EventHandler <List <Position> >(positionSaved); searchPosition.ShowDialog(); }
private void btnEditPosition_Click(object sender, EventArgs e) { Position position = (Position)GuiUtils.GetSelected <Position>(lstViewPositions, positionTagSet); if (position != null) { PositionForm editPosition = new PositionForm(dbContext, position); editPosition.ShowDialog(); } else { MessageBox.Show("Nie wybrano pozycji!", "Błąd"); } }
// Positions private void btnAddPosition_Click(object sender, EventArgs e) { PositionForm addPosition = new PositionForm(dbContext); addPosition.ShowDialog(); }