Exemplo n.º 1
0
        public void Open(object sender, RoutedEventArgs e)
        {
            ViewModel vm = (sender as Button).DataContext as ViewModel;

            if (OpenButton.Tag.ToString() == "col")
            {
                vm.OpenAdd();
            }
            if (OpenButton.Tag.ToString() == "ace")
            {
                vm.OpenProject();
            }
        }
Exemplo n.º 2
0
        public void OpenAdd(object sender, RoutedEventArgs e)
        {
            ViewModel vm = (sender as Button).DataContext as ViewModel;

            vm.OpenAdd();
        }