Esempio n. 1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            ViewGrid.Author       = ViewGrid.KeyWords = ViewGrid.Name = ViewGrid.Number = ViewGrid.Organization =
                ViewGrid.Pages    = ViewGrid.Place = ViewGrid.Referat = ViewGrid.Sity = ViewGrid.Tema1 = ViewGrid.Tema2 =
                    ViewGrid.Year = ReportView.Author = ReportView.KeyWords = ReportView.Name = ReportView.Number =
                        ReportView.Organization = ReportView.Pages = ReportView.Place = ReportView.Referat = ReportView.Sity =
                            ReportView.Tema1    = ReportView.Tema2 = ReportView.Year = ViewGrid.Images = ReportView.Images = true;

            label2.Visible          = false;
            textBoxNumberTo.Enabled = false;

            FileInfo file   = new FileInfo("config.ini");
            FileInfo fileUz = new FileInfo("configUz.ini");

            if (!file.Exists && !fileUz.Exists)
            {
                MessageBox.Show("Нет файла подключения!");
                NewConectToServerForm conf = new NewConectToServerForm();
                conf.ShowDialog();
            }

            Util.IsAuthotization = false;
            label1.Text          = "Показанно 0 записей";

            cbSort.SelectedIndex = 0;

            MessageBox.Show("Сейчас будет выполненна загрузка данных. Это может занять некоторое время.");
        }
Esempio n. 2
0
        private void menuItemSQLConnect_Click(object sender, EventArgs e)
        {
            NewConectToServerForm newCon = new NewConectToServerForm();

            newCon.ShowDialog();
        }