protected override void SelectObject(object sender, System.EventArgs e) { SelectServiceTypeForm form = new SelectServiceTypeForm { Selected = base.ServiceTypes }; form.SetFilterByCounterContects(ServiceTypeOld.GetServiceTypeContextByCounter()); if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { base.ServiceTypes = form.Selected; base.FillServiceTypes(); } }
protected override void SelectObject(object sender, System.EventArgs e) { SelectServiceTypeForm form = new SelectServiceTypeForm { Selected = this.ServiceTypes }; form.SetFilter(this.FilterServiceProvider); form.SetFilterResourceProvider(this.FilterResourceProvider); form.IsByUser = this.IsByUser; if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { this.ServiceTypes = form.Selected; this.FillServiceTypes(); } }