public override void Run() { PositionForm form = new PositionForm(position); IPositionRepository dao = new NHibernatePositionRepository(); form.PositionSave += delegate(object sender, PositionEventArgs e) { dao.SaveOrUpdate(e.Position); form.Close(); }; WorkbenchSingleton.AddChild(form, "Edit Position"); }
public void showAdminDashBoardForPosition(AdminDashBoard adminDashboard, PositionForm positionForm) { positionForm.Close(); adminDashboard.Show(); }