Ejemplo n.º 1
0
        private void addNewSkillType_Click(object sender, EventArgs e)
        {
            var skilltype = new Lookup.EmployeeSkillTypeView();

            skilltype.ShowList();
            var result = skilltype.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                var store = new LookupProxy();
                this.skillTypeBindingSource.DataSource = store.Context.EmployeeSkillTypes.ToList();
            }
        }
Ejemplo n.º 2
0
        private void addSkillTypehyperLinkEdit_Click(object sender, EventArgs e)
        {
            var picker = new Lookup.EmployeeSkillTypeView();

            picker.ShowList();
            var result = picker.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                var store = new LookupProxy();
                this.skillTypeBindingSource.DataSource = store.Context.EmployeeSkillTypes.ToList();
            }
        }