private void Initialize() { FrontsCatalog = new FrontsCatalog(1); DecorCatalog = new DecorCatalog(1); FrontsCatalogBinding(); DecorCatalogBinding(); FrontsGridsSettings(); DecorGridsSettings(); }
private void kryptonCheckSet2_CheckedButtonChanged(object sender, EventArgs e) { if (FrontsCatalog == null || DecorCatalog == null) { return; } if (kryptonCheckSet2.CheckedButton.Name == "ProfilCheckButton") { Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Загрузка данных с сервера.\r\nПодождите..."); }); T.Start(); while (!SplashWindow.bSmallCreated) { ; } FrontsCatalog = new FrontsCatalog(1); DecorCatalog = new DecorCatalog(1); FrontsCatalogBinding(); DecorCatalogBinding(); FrontsGridsSettings(); DecorGridsSettings(); while (SplashWindow.bSmallCreated) { SmallWaitForm.CloseS = true; } } else { Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Загрузка данных с сервера.\r\nПодождите..."); }); T.Start(); while (!SplashWindow.bSmallCreated) { ; } FrontsCatalog = new FrontsCatalog(2); DecorCatalog = new DecorCatalog(2); FrontsCatalogBinding(); DecorCatalogBinding(); FrontsGridsSettings(); DecorGridsSettings(); while (SplashWindow.bSmallCreated) { SmallWaitForm.CloseS = true; } } }
private void ProfilCheckButton_Click(object sender, EventArgs e) { Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Загрузка данных с сервера.\r\nПодождите..."); }); T.Start(); while (!SplashWindow.bSmallCreated) { ; } FrontsCatalog = new FrontsCatalog(1); DecorCatalog = new DecorCatalog(1); FrontsCatalogBinding(); DecorCatalogBinding(); FrontsGridsSettings(); DecorGridsSettings(); while (SplashWindow.bSmallCreated) { SmallWaitForm.CloseS = true; } }