예제 #1
0
        private void PlaceInfo_DBConnectTestButton_Click(object sender, EventArgs e)
        {
            bool flag = PlaceInfoHelper.TestConnection(PlaceInfo_GetConnectString());

            MessageBox.Show((flag) ? "Подключение выполнено!" : "Подключение не выполнено!", "Тест подключения", MessageBoxButtons.OK, (flag) ? MessageBoxIcon.Information : MessageBoxIcon.Error);
            PlaceInfo_SaveUsedVals();
        }