예제 #1
0
        private void btnList_Click(object sender, RoutedEventArgs e)
        {
            frmConditionalPermissionSelect view = new MyProject_WPF.frmConditionalPermissionSelect();

            view.ConditionalPermissionSelected += View_ConditionalPermissionSelected;
            MyProjectManager.GetMyProjectManager().ShowDialog(view, "Form");
        }
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            frmEntityListReportGroupedSelect view = new MyProject_WPF.frmEntityListReportGroupedSelect(EntityID);

            view.EntityListReportGroupedSelected += View_EntityListReportSelected1;
            MyProjectManager.GetMyProjectManager().ShowDialog(view, "frmEntityListReportGroupedSelect");
        }
예제 #3
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);
        }
        private void LokDatabase_NewItemClicked(object sender, EventArgs e)
        {
            frmDatabaseCreate frm = new frmDatabaseCreate(0);

            frm.DatabaseUpdated += Frm_DatabaseUpdated;
            MyProjectManager.GetMyProjectManager().ShowDialog(frm, "تعریف پایگاه داده");
        }
예제 #5
0
        private void btnAddFormula_Click(object sender, RoutedEventArgs e)
        {
            var entity = lokEntities.SelectedItem as TableDrivedEntityDTO;

            frmFormula view = new frmFormula(0, entity.ID);

            view.FormulaSelected += View_FormulaSelected;
            MyProjectManager.GetMyProjectManager().ShowDialog(view, "Form");
        }
 private void btnImport_Click(object sender, RoutedEventArgs e)
 {
     if (lokDatabase.SelectedItem != null)
     {
         var frm = new DatabaseImport(new MyProject_WPF.DBImportIntention()
         {
             DatabaseID = (int)lokDatabase.SelectedValue
         });
         MyProjectManager.GetMyProjectManager().ShowDialog(frm, "استخراج پایگاه داده");
     }
 }
예제 #7
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);
            }
        }
        private void LokDatabase_EditItemClicked(object sender, MyCommonWPFControls.EditItemClickEventArg e)
        {
            int dbId = 0;

            if (lokDatabase.SelectedItem != null)
            {
                dbId = (int)lokDatabase.SelectedValue;
            }
            frmDatabaseCreate frm = new frmDatabaseCreate(dbId);

            frm.DatabaseUpdated += Frm_DatabaseUpdated;
            MyProjectManager.GetMyProjectManager().ShowDialog(frm, "اصلاح پایگاه داده");
        }
예제 #9
0
        private void btnSelect_Click(object sender, RoutedEventArgs e)
        {
            var item = dtgItems.SelectedItem as RelationshipFilterDTO;

            if (item != null)
            {
                if (RelationshipFilterSelected != null)
                {
                    RelationshipFilterSelected(this, new  RelationshipFilterSelectedArg()
                    {
                        ID = item.ID
                    });
                }
            }
            MyProjectManager.GetMyProjectManager().CloseDialog(this);
        }
예제 #10
0
        private void btnSelect_Click(object sender, RoutedEventArgs e)
        {
            var item = dtgItems.SelectedItem as EntityListReportGroupedDTO;

            if (item != null)
            {
                if (EntityListReportGroupedSelected != null)
                {
                    EntityListReportGroupedSelected(this, new EntityListReportGroupedSelectedArg()
                    {
                        EntityListReportGroupedID = item.ID
                    });
                }
            }
            MyProjectManager.GetMyProjectManager().CloseDialog(this);
        }
예제 #11
0
 private void btnSelect_Click(object sender, RoutedEventArgs e)
 {
     if (ItemsSelected != null)
     {
         var Activitys = dtgList.ItemsSource as List <ActivityDTO>;
         if (Activitys.Count(x => x.vwSelected == true) > 0)
         {
             var arg = new SelectedItemsArg();
             arg.Items = new List <object>();
             foreach (var item in Activitys)
             {
                 if (item.vwSelected == true)
                 {
                     arg.Items.Add(item);
                 }
             }
             ItemsSelected(this, arg);
             MyProjectManager.GetMyProjectManager().CloseDialog(this);
         }
     }
 }
예제 #12
0
 private void View_ConditionalPermissionSelected(object sender, ConditionalPermissionSelectedArg e)
 {
     MyProjectManager.GetMyProjectManager().CloseDialog(sender);
     Message = bizPermission.GetConditionalPermission(e.ConditionalPermissionID);
     ShowData();
 }
예제 #13
0
 private void btnClose_Click(object sender, RoutedEventArgs e)
 {
     MyProjectManager.GetMyProjectManager().CloseDialog(this);
 }