Пример #1
0
        private void reg_bt_Click(object sender, EventArgs e)
        {//+
            string login          = txt_login.Text.ToString();
            string pass           = txt_pass.Text.ToString();
            string group          = txt_group.Text.ToString();
            string id_type_person = txt_id_type_person.Text.ToString();

            int res = port_server.sign_up(login, pass, group, id_type_person);

            if (res == port_server.ERROR)
            {
                return;
            }

            my_global.id_store = res;

            Form ptr = new Anketirovanie();

            ptr.Show();
        }
Пример #2
0
        private void btn_in_Click(object sender, EventArgs e)
        {//+
            //vvod log;pass;group
            string login          = txt_login.Text.ToString();
            string pass           = txt_pass.Text.ToString();
            string group          = txt_group.Text.ToString();
            string id_type_person = txt_id_type_person.Text.ToString();

            int res = port_server.sign_in(login, pass);

            if (res == port_server.ERROR)
            {
                return;
            }

            my_global.id_store = res;
            Form ptr = new Anketirovanie();

            my_global.id_pers = res; //для загрузки ответов для персоны
            ptr.Show();
        }
Пример #3
0
        private void btn_anketirovanie(object sender, EventArgs e)
        {
            Form ptr = new Anketirovanie();

            ptr.Show();
        }