コード例 #1
0
 public ListModule(FormState source, MenuModule menu)
 {
     this.source = source;
     this.menu   = menu;
     this.source.PropertyChanged += Source_PropertyChanged;
     this.menu.PropertyChanged   += Source_PropertyChanged;
 }
コード例 #2
0
 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());
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: modeeb/PicTag
        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;
        }