Exemplo n.º 1
0
        private void RemoveItemButton_Click(object sender, EventArgs e)
        {
            bool OKCancel = Infinium.LightMessageBox.Show(ref TopForm, true,
                                                          "Наименование будет удалено. Продолжить?",
                                                          "Удаление");

            if (OKCancel)
            {
                Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Загрузка данных с сервера.\r\nПодождите..."); });
                T.Start();

                while (!SplashWindow.bSmallCreated)
                {
                    ;
                }

                TechStoreManager.RemoveTechStore(StorageItemsManager.CurrentStoreItem);
                StorageItemsManager.RefreshStoreItems();

                while (SplashWindow.bSmallCreated)
                {
                    SmallWaitForm.CloseS = true;
                }
            }
        }