public Base(Form form_parent, bool admin, bool seller, bool client, int id, int post = 0)
        {
            InitializeComponent();

            form1 = form_parent;

            is_admin  = admin;
            is_seller = seller;
            is_client = client;
            user_id   = id;
            post_id   = post;
            //queries follow here -->

            // открытие соединения
            OpenConnect();

            //инициализация всех таблиц в зависимости от учетной записи
            InitFields();

            form_staff  = new NEW_Staff(cnn, this);
            form_client = new NEW_Client(cnn, this);
            form_item   = new NEW_Item(cnn, this);

            //and make the options for each datagridview
            do_options();
        }
 private void sign_up_button_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Перейти к регистрации клиента?", "Новый клиент", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         OpenConnectSignUp();
         form_client = new NEW_Client(cnn, this);
         this.Hide();
         form_client.Show();
     }
 }