Esempio n. 1
0
        private void mnuAddNewActivity_Click(object sender, RoutedEventArgs e)
        {
            frmAddActivity view = new frmAddActivity(ProcessID, 0);

            view.ItemSaved += View_ItemSaved1;
            MyProjectManager.GetMyProjectManager().ShowDialog(view, "Form", Enum_WindowSize.Big);
        }
Esempio n. 2
0
        private void mnuEditActivity_Click(object sender, RoutedEventArgs e)
        {
            var menuItem    = sender as RadMenuItem;
            var contextMenu = menuItem.Parent as RadContextMenu;
            var source      = contextMenu.GetClickedElement <GridViewRow>();

            if (contextMenu != null && source != null)
            {
                frmAddActivity view = new frmAddActivity(ProcessID, (source.DataContext as  ActivityDTO).ID);
                view.ItemSaved += View_ItemSaved1;
                MyProjectManager.GetMyProjectManager().ShowDialog(view, "Form", Enum_WindowSize.Big);
            }
        }