Ejemplo n.º 1
0
        protected virtual void SelectExpedientAction()
        {
            ExpedienteList list = ExpedienteList.GetList(moleQule.Store.Structs.ETipoExpediente.Work, false);
            WorkSelectForm form = new WorkSelectForm(this, list);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                SetExpediente((ExpedientInfo)form.Selected);
                RefreshLines();
            }
        }
Ejemplo n.º 2
0
        protected override void AddWorkAction()
        {
            WorkSelectForm form = new WorkSelectForm(this);

            form.ShowDialog(this);

            if (form.ActionResult == DialogResult.OK)
            {
                ExpedientInfo work = form.Selected as ExpedientInfo;

                if (!_entity.Relations.ContainsRelationChild(work))
                {
                    _entity.Relations.NewItem(_entity, work);
                    _works.AddItem(work);

                    LoadData(true);
                }
            }
        }