comand.Parameters.Add("Nik.Text", MySqlDbType.VarChar).Value = nik;
comand.Parameters.Add("Email.Text", MySqlDbType.VarChar).Value = email;
comand.Parameters.Add("Pass.Text", MySqlDbType.VarChar).Value = pass;
comand.Parameters.Add("Name.Text", MySqlDbType.VarChar).Value = name;
comand.Parameters.Add("LastName.Text", MySqlDbType.VarChar).Value = lastName;
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace hide
{
class Program
{
[DllImport("kernel32.dll")]
static extern IntPtr GetConsoleWindow();
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
const int SW_HIDE = 0;
const int SW_SHOW = 5;
static void Main(string[] args)
{
var handle = GetConsoleWindow();
ShowWindow(handle, SW_HIDE);
Console.Read();
}
}
}