CSReportEditor.fColumns.getOk C# (CSharp) Метод

getOk() приватный Метод

private getOk ( ) : bool
Результат bool
        internal bool getOk()
        {
            return m_ok;
        }

Usage Example

Пример #1
0
        public static bool showDbFields(ref string field, ref int fieldType, ref int index, cEditor editor)
        {
            fColumns fc = null;

            try {
                fc = new fColumns();

                fc.clearColumns();

                cReport report = editor.getReport();

                cReportConnect connect = report.getConnect();
                fc.fillColumns(connect.getDataSource(), connect.getColumns(), false);

                for (int _i = 0; _i < report.getConnectsAux().count(); _i++)
                {
                    connect = report.getConnectsAux().item(_i);
                    fc.fillColumns(connect.getDataSource(), connect.getColumns(), true);
                }

                fc.setField(field);
                fc.ShowDialog();

                if (fc.getOk())
                {
                    field     = fc.getField();
                    fieldType = fc.getFieldType();
                    index     = fc.getIndex();

                    return(true);
                }
                else
                {
                    return(false);
                }
            } catch (Exception ex) {
                cError.mngError(ex, "showDbFields", C_MODULE, "");
                return(false);
            }
            finally {
                if (fc != null)
                {
                    fc.Close();
                }
            }
        }
All Usage Examples Of CSReportEditor.fColumns::getOk