//private void GetCodePath(int codeFunctionID)
        //{
        //    BizCodeFunction bizCodeFunction = new BizCodeFunction();
        //    var codeFunction = bizCodeFunction.GetCodeFunction(codeFunctionID);
        //    txtCodePath.Text = codeFunction.Path;
        //}

        //private void optCode_Checked(object sender, RoutedEventArgs e)
        //{
        //    tabFormula.Visibility = Visibility.Collapsed;
        //    tabCode.Visibility = Visibility.Visible;
        //    tabCode.IsSelected = true;
        //}

        private void btnAddFormula_Click(object sender, RoutedEventArgs e)
        {
            frmFormula view = new frmFormula(cmbFormula.SelectedItem == null ? 0 : (int)cmbFormula.SelectedValue, EntityID);

            view.FormulaUpdated += View_FormulaSelected;
            MyProjectManager.GetMyProjectManager.ShowDialog(view, "Form");
        }
        private void item_Click(object sender, RadRoutedEventArgs e, ItemCollection collection, int entityID, int parameterID)
        {
            frmFormula view = new frmFormula(parameterID, entityID);

            view.FormulaUpdated += (sender1, e1) => view_FormulaParameterUpdated(sender1, e1, entityID, collection);
            MyProjectManager.GetMyProjectManager.ShowDialog(view, "فرمول", Enum_WindowSize.Maximized);
        }
Beispiel #3
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");
        }
        void item_Click(object sender, RoutedEventArgs e, int entityID, RadTreeViewItem parametersNode)
        {
            //var formulaParameterIntention = new FormulaParameterIntention();
            //formulaParameterIntention.Type = Enum_FormulaParameterIntention.FormulaParameterForTable;
            //formulaParameterIntention.EntityID = entityID;
            frmFormula view = new frmFormula(0, entityID);

            view.FormulaUpdated += (sender1, e1) => view_FormulaParameterUpdated(sender1, e1, entityID, parametersNode.Items);
            MyProjectManager.GetMyProjectManager.ShowDialog(view, "Form", Enum_WindowSize.Maximized);
        }
        private void LokFormula_EditItemClicked(object sender, EditItemClickEventArg e)
        {
            int formulaID = 0;

            if (lokFormula.SelectedItem != null)
            {
                formulaID = (int)lokFormula.SelectedValue;
            }
            frmFormula view = new frmFormula(formulaID, EntityID);

            view.FormulaUpdated += View_FormulaSelected;
            MyProjectManager.GetMyProjectManager.ShowDialog(view, "Form", Enum_WindowSize.Maximized);
        }
        //private void View_FormulaSelected(object sender, FormulaSelectedArg e)
        //{
        //    GetFormulaOfFormulaParameter(e.FormulaID);
        //}

        private void lokFormula_EditItemClicked(object sender, MyCommonWPFControls.EditItemClickEventArg e)
        {
            frmFormula view;

            if (lokFormula.SelectedItem != null)
            {
                view = new frmFormula((int)lokFormula.SelectedValue, EntityID);
            }
            else
            {
                view = new frmFormula(0, EntityID);
            }
            view.FormulaSelected += View_FormulaSelected;
            view.Show();
        }