public void Init()
        {
            Model = new PriceModel();
            string appPath = Application.ExecutablePath;
            Model.InsertDataError += Model_InsertDataError;
            Model.OnAddRow += Model_OnAddRow;
            Model.OnSaveAll += Model_OnSaveAll;

            Model.LoadCurrency();

            DateTime d1 = DateTime.Now;

            ReceiveData.instance.OnLoaded += new ReceiveData.OnLoadedEventHandler(instance_OnLoaded);

            ReceiveData.instance.BegQuery();
            Model.Load_import_settings().ContinueWith(res =>
            {
                SetDataTableByRows(res, TABLE_IMPORT_SETTINGS);
                SetDataBindings();
                SetFormatComboBox(res);
                ReceiveData.instance.EndQuery();
            });

            LoadData(true);

            DateTime d2 = DateTime.Now;
            TimeSpan timeout = d2 - d1;

            FillComboBoxes();
            comboBoxImportCurrency.SelectedIndex = 0;

            SetGridLayout();

            //dataGrid_import_excel.Columns["isChecked"].ReadOnly = false;
            Debug.WriteLine("time data loaded: " + timeout.ToString());
            return;
        }