//TxtFormatProvider txtProvider = new TxtFormatProvider(); //XamlFormatProvider xamlProvider = new XamlFormatProvider(); public MainForm() { InitializeComponent(); FillTableColumns(); itemManager.loadItemsFromFile(); aimManager.loadAimsFromFile(); rules.loadTextFromFile(); prehistory.loadTextFromFile(); peopleManager.loadPersonsFromFile(); eventManager.loadEventsFromFile(); CSettings.loadSettingsFromFile(); CSettings.fillGridViewSettings(gridViewAims); CSettings.fillGridViewSettings(gridViewItems); CSettings.fillGridViewSettings(gridViewPersons); CSettings.fillGridViewSettings(gridViewEvents); if (CommonError.isError) { MessageBox.Show(CommonError.getCurrentError(), "Ошибка открытия данных", MessageBoxButtons.OK, MessageBoxIcon.Warning); } UpdateDataOnGridViews(); if (CommonError.isError) { MessageBox.Show(CommonError.getCurrentError(), "Ошибка открытия данных", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }