public ActionMenuRole(ActionMenuRole item) { this.Insert = item.Insert; this.Update = item.Update; this.View = item.View; this.Edit = item.Edit; this.Delete = item.Delete; this.Search = item.Search; this.Approve = item.Approve; this.Close = item.Close; }
private void selectItem(object sender, RoutedEventArgs e) { this.currentItem = (sender as TreeViewItem); this.currentParentItem = this.currentItem.GetParentTreeViewItem(); this.CurrentMenuRole = this.dicMenuRole[this.currentItem.TabIndex.ToString()]; }