Exemple #1
0
        private void _toolsOpenTableMenuItem_Click(object sender, EventArgs e)
        {
            EntitySchema entity;

            using (var form = new SelectEntityForm(_api))
            {
                if (form.ShowDialog(this) != DialogResult.OK)
                {
                    return;
                }

                entity = form.SelectedEntity;
            }

            List <Filter> filters;

            using (var form = new EntityFiltersForm(entity, new Filter[0]))
            {
                if (form.ShowDialog(this) != DialogResult.OK)
                {
                    return;
                }

                filters = form.GetFilters();
            }

            using (var form = new ResultForm(_api, entity, filters))
            {
                form.ShowDialog(this);
            }
        }
Exemple #2
0
        private void DoAddExport()
        {
            EntitySchema entity;

            using (var form = new SelectEntityForm(_api))
            {
                if (form.ShowDialog(this) != DialogResult.OK)
                {
                    return;
                }

                entity = form.SelectedEntity;
            }

            var export = new ExportDefinition
            {
                Entity = entity
            };

            using (var form = new ExportDefinitionForm(_api, _fileBrowser.Directory, null, export))
            {
                form.ShowDialog(this);
            }
        }