public ListModule(FormState source, MenuModule menu) { this.source = source; this.menu = menu; this.source.PropertyChanged += Source_PropertyChanged; this.menu.PropertyChanged += Source_PropertyChanged; }
public static OrderByToolStripItem[] CreateForOwner(MenuModule owner, OrderByEnum selected, bool ascending) { propertyName = nameof(owner.OrderBy); propertyOwner = owner; Value = selected; Ascending = ascending; return(EnumList <OrderByEnum>().Select(v => new OrderByToolStripItem(v)).ToArray()); }
internal MainForm(MenuModule menu, ListModule list, TreeModule tree, FormState source) : this() { this.menu = menu; this.list = list; this.tree = tree; this.source = source; menu.Bind(viewToolStripMenuItem, foldersTreeToolStripMenuItem); list.Bind(listView1, panel1); tree.Bind(treeView1); tree.Populate(); menuModuleBindingSource.DataSource = menu; formStateBindingSource.DataSource = source; }