Esempio n. 1
0
 public AddGroup(GroupsControl g)
 {
     InitializeComponent();
     _Group = g;
 }
Esempio n. 2
0
        private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            GridMain.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "Reparte":
                usc = new RepartControl();
                GridMain.Children.Add(usc);
                break;

            case "ItemCreate":
                usc = new UserControlCreate();
                GridMain.Children.Add(usc);
                break;

            case "Groups":
                usc = new GroupsControl();
                GridMain.Children.Add(usc);
                break;

            case "Depot":
                usc = new DepotControl();
                GridMain.Children.Add(usc);
                break;

            case "Measures":
                usc = new Measure();
                GridMain.Children.Add(usc);
                break;

            case "SubGroups":
                usc = new SubGroupControl();
                GridMain.Children.Add(usc);
                break;

            case "Articles":
                usc = new ArticlesControl();
                GridMain.Children.Add(usc);
                break;

            case "Workflow":
                usc = new WorkFlowControl();
                GridMain.Children.Add(usc);
                break;

            case "Receptura":
                usc = new RecepturaControl();
                GridMain.Children.Add(usc);
                break;

            case "Transfers":
                usc = new MovesControl();
                GridMain.Children.Add(usc);
                break;

            default:
                break;
            }
        }