Пример #1
0
        private void EditSellerButton_Click(object sender, EventArgs e)
        {
            if (ToolsSellersDataGrid.SelectedRows.Count > 0 &&
                ToolsSellersGroupsDataGrid.SelectedRows.Count > 0)
            {
                Thread T = new Thread(delegate() { SplashWindow.CreateSplash(); });
                T.Start();

                while (!SplashForm.bCreated)
                {
                    ;
                }

                NewToolsSellerForm NewToolsSellerForm = new NewToolsSellerForm(ref ToolsSellersManager, 0);

                TopForm = NewToolsSellerForm;

                NewToolsSellerForm.ShowDialog();

                NewToolsSellerForm.Close();
                NewToolsSellerForm.Dispose();

                TopForm = null;
            }
        }
Пример #2
0
        private void AddSellerButton_Click(object sender, EventArgs e)
        {
            if (ToolsSellersManager == null || ToolsSellersManager.ToolsSubGroupsCount == 0)
            {
                return;
            }

            Thread T = new Thread(delegate() { SplashWindow.CreateSplash(); });

            T.Start();

            while (!SplashForm.bCreated)
            {
                ;
            }

            NewToolsSellerForm NewToolsSellerForm = new NewToolsSellerForm(ref ToolsSellersManager, -1);

            TopForm = NewToolsSellerForm;

            NewToolsSellerForm.ShowDialog();

            NewToolsSellerForm.Close();
            NewToolsSellerForm.Dispose();

            TopForm = null;
        }