Пример #1
0
        private void butTools_Click(object sender, EventArgs e)
        {
            FormSheetTools formST = new FormSheetTools();

            formST.ShowDialog();
            if (formST.HasSheetsChanged)
            {
                FillGrid2(formST.ImportedSheetDefNum);
            }
        }
        private void butTools_Click(object sender, EventArgs e)
        {
            FormSheetTools formSheetTools = new FormSheetTools(true);

            formSheetTools.ShowDialog();
            if (formSheetTools.HasSheetsChanged)
            {
                SheetDefs.RefreshCache();
                SheetFieldDefs.RefreshCache();
                SheetDef sheetDefImported = SheetDefs.GetFirstOrDefault(x => x.SheetDefNum == formSheetTools.ImportedSheetDefNum);
                ToggleDashboardPermission(sheetDefImported, _listUserGroups.ToArray());
                FillGridCustom(false, doRefreshCache: false);
                SelectDashboardDef(sheetDefImported);
            }
        }
Пример #3
0
        private void butTools_Click(object sender, EventArgs e)
        {
            FormSheetTools formST = new FormSheetTools();

            formST.ShowDialog();
            if (formST.HasSheetsChanged)
            {
                FillGrid2();
                if (formST.ImportedSheetDefNum == 0)
                {
                    return;
                }
                for (int i = 0; i < _listSheetDefs.Count; i++)
                {
                    if (_listSheetDefs[i].SheetDefNum == formST.ImportedSheetDefNum)
                    {
                        grid2.SetSelected(i, true);
                    }
                }
            }
        }