private void InitializeWidgets(string desc) { infoLbl.Text = infoLbl.Text.Replace("%0", desc); foreach (PropertyInfo pinf in process.GetType().GetProperties()) { AddPropertyWidget(process, pinf); } }
/// <summary> /// Añade un algoritmo de procesado a la lista. /// </summary> /// <param name="p"> /// A <see cref="BitmapProcess"/> /// </param> private void AddProcess(BitmapProcess p) { BitmapProcessNode node = new BitmapProcessNode(p, bitmapProcessesTypes[p.GetType()]); processesView.NodeStore.AddNode(node); processesView.NodeSelection.SelectNode(node); TreePath path = processesView.Selection.GetSelectedRows()[0]; processesView.ScrollToCell(path, null, true, 0f, 0); }