コード例 #1
0
        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");
        }
コード例 #2
0
 public void showAdminDashBoardForPosition(AdminDashBoard adminDashboard, PositionForm positionForm)
 {
     positionForm.Close();
     adminDashboard.Show();
 }