Ejemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            exp[0] = TextBox1.Text;
            exp[1] = DropDownList1.SelectedItem.ToString() + "-" + DropDownList2.SelectedItem.ToString();

            if (CheckBox1.Checked == true)
            {
                exp[2] = "currently working";
            }
            else
            {
                exp[2] = DropDownList3.SelectedItem.ToString() + "-" + DropDownList4.SelectedItem.ToString();
            }
            exp[3]    = TextBox3.Text;
            exp[4]    = Session["c_img_id"].ToString();
            salary[2] = Session["c_img_id"].ToString();
            salary[1] = TextBox6.Text;
            salary[0] = TextBox5.Text;

            newclass    nc = new newclass();
            string      s  = nc.insert_experience(exp);
            updateclass uc = new updateclass();

            s = s + "/ " + uc.update_salary(salary);

            Response.Write(s);
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            Button button = (Button)FindViewById(Resource.Id.button1);

            statecallback       = new newclass();
            statecallback.tview = (TextureView)FindViewById(Resource.Id.surfaceView1);
            statecallback.tview.SurfaceTextureListener = this;
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Aluno aluno1 = new Aluno("Davi", "456.264.909-22");
            Aluno aluno2 = new Aluno("Esquilo!", "500.907.958-69", "Prog1");

            Console.WriteLine("Nome: " + aluno1.nome);
            Console.WriteLine("CPF: " + aluno1.cpf);
            Console.WriteLine("Curso: " + aluno1.curso);

            Console.WriteLine("Nome: " + aluno2.nome);
            Console.WriteLine("CPF: " + aluno2.cpf);
            Console.WriteLine("Curso: " + aluno2.curso);

            Console.Write("Entre com o nome: ");
            string nome = Console.ReadLine();

            Console.Write("Entre com o CPF: ");
            string cpf = Console.ReadLine();

            Console.Write("Entre com o curso: ");
            string curso = Console.ReadLine();

            Console.Write("Entre ccom a nota: ");
            int nota = int.Parse(Console.ReadLine());

            Console.Write("Entre com o bimestre:");
            int      bimestre = int.Parse(Console.ReadLine());
            newclass aluno3   = new newclass(nome, cpf, curso);

            aluno3.setnotas(bimestre, nota);

            Console.WriteLine("Nome: " + aluno3.nome);
            Console.WriteLine("CPF: " + aluno3.cpf);
            Console.WriteLine("Curso: " + aluno3.curso);
            Console.WriteLine("Notas: " + aluno3.curso);
        }