Ejemplo n.º 1
0
        private void lstInnerJoin_DoubleClick(object sender, System.EventArgs e)
        {
            if (lstInnerJoin.SelectedIndex >= 0)
            {
                type_generationGenerateentityCustomfindmethodInnerjoin innerjoin = mCustomFindMethod.innerjoin[lstInnerJoin.SelectedIndex];

                fdlgCustomFindMethod_InnerJoin dlg = new fdlgCustomFindMethod_InnerJoin();
                dlg.DbDefinitionDocument = mDbDefinitionDocument;
                dlg.Entity         = innerjoin.entity;
                dlg.EntityAlias    = innerjoin.entityalias;
                dlg.JoinExpression = innerjoin.joinexpression;

                if (dlg.ShowDialog(this) == DialogResult.OK)
                {
                    innerjoin.entity         = dlg.Entity;
                    innerjoin.entityalias    = dlg.EntityAlias;
                    innerjoin.joinexpression = dlg.JoinExpression;
                    LoadInnerJoins();
                }
            }
        }
Ejemplo n.º 2
0
        private void cmdInnerJoinAdd_Click(object sender, System.EventArgs e)
        {
            fdlgCustomFindMethod_InnerJoin dlg = new fdlgCustomFindMethod_InnerJoin();

            dlg.DbDefinitionDocument = mDbDefinitionDocument;

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                type_generationGenerateentityCustomfindmethodInnerjoin innerjoin = new type_generationGenerateentityCustomfindmethodInnerjoin();
                innerjoin.entity         = dlg.Entity;
                innerjoin.entityalias    = dlg.EntityAlias;
                innerjoin.joinexpression = dlg.JoinExpression;

                ArrayList alInnerJoins = new ArrayList();
                if (mCustomFindMethod.innerjoin != null)
                {
                    alInnerJoins.AddRange(mCustomFindMethod.innerjoin);
                }
                alInnerJoins.Add(innerjoin);
                mCustomFindMethod.innerjoin = (type_generationGenerateentityCustomfindmethodInnerjoin[])alInnerJoins.ToArray(typeof(type_generationGenerateentityCustomfindmethodInnerjoin));
                LoadInnerJoins();
            }
        }