public void show_view(base_view.viste_nomi name) { try { if (this.active_view != null) { this.active_view.save_controls(); } tab_main.TabPages.Clear(); views.base_view f = get_view(name); tab_main.TabPages.Add(f.tab); this.bread_crumb.clear_voices(); this.foot.clear(); this.set_title(); Application.DoEvents(); f.show_view(); this.prev_view = this.active_view; if (this.prev_view != null) { this.prev_view.close_view(); } this.active_view = f; if (this.active_view.tipo != base_view.type_view.login && this.bread_crumb.is_empty) { this.bread_crumb.set_voices("home"); } } catch (Exception ex) { set_status_err(ex); } }
protected string html_app(base_view v) { return($@"<span class='app' onclick=""open_form('{v.name_view}')"" style='cursor:pointer;'>{v.title_view} <span class='des_app'>{v.des_view}</span></span>"); }
public static void add_vista(base_view v) { base_view.viste.Add(v); }