protected virtual void SelectSerieAction() { SerieList list = null; switch (_entity.EHolderType) { case ETipoEntidad.WorkReport: { list = SerieList.GetList(false, ETipoSerie.Work); } break; case ETipoEntidad.Cliente: { list = SerieList.GetList(false, ETipoSerie.Venta); } break; } SerieSelectForm form = new SerieSelectForm(this, list); if (form.ShowDialog(this) == DialogResult.OK) { SetSerie(form.Selected as SerieInfo, true); } }
protected virtual void SelectSerieAction() { SerieSelectForm form = new SerieSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { SetSerie(form.Selected as SerieInfo, true); } }
private void Serie_BT_Click(object sender, EventArgs e) { SerieSelectForm form = new SerieSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { _serie = form.Selected as SerieInfo; Serie_TB.Text = _serie.Nombre; } }
private void SerieInstruccion_BT_Click(object sender, EventArgs e) { SerieSelectForm form = new SerieSelectForm(this, _series); if (form.ShowDialog() == DialogResult.OK) { SerieInfo serie = form.Selected as SerieInfo; Entity.OidSerie = serie.Oid; SerieInstruccion_TB.Text = serie.Nombre; } }