コード例 #1
0
        private void btnALTAS_Click(object sender, EventArgs e)
        {
            New_Item newItem = new New_Item(new Modelo.Requerimiento(), "A");

            newItem.FormBorderStyle = FormBorderStyle.None;
            DialogResult dr = newItem.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                ARMA_GRILLA();
            }
        }
コード例 #2
0
        private void btnMODIFICACIONES_Click(object sender, EventArgs e)
        {
            if (dgvRequerimientos.CurrentRow == null)
            {
                MessageBox.Show("Debe seleccionar un usuario de la lista", "ATENCION!!");
                return;
            }
            New_Item newItem = new New_Item(cReq.Recuperar(Convert.ToInt32(dgvRequerimientos.CurrentRow.Cells[0].Value)), "M");

            newItem.FormBorderStyle = FormBorderStyle.None;
            DialogResult dr = newItem.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                ARMA_GRILLA();
            }
        }
コード例 #3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            switch (this.action)
            {
            case enmAction.wait:
                timer1.Interval = 50000;
                action          = enmAction.close;
                break;

            case Form_Alert.enmAction.start:
                this.timer1.Interval = 1;
                this.Opacity        += 0.1;
                if (this.x < this.Location.X)
                {
                    this.Left--;
                }
                else
                {
                    if (this.Opacity == 1.0)
                    {
                        action = Form_Alert.enmAction.wait;
                    }
                }
                break;

            case enmAction.close:
                timer1.Interval = 1;
                this.Opacity   -= 0.1;

                this.Left -= 3;
                if (base.Opacity == 0.0)
                {
                    base.Close();
                }
                break;

            case enmAction.Frm:
                timer1.Interval = 1;

                New_Item Frm = new New_Item();
                Frm.Show();
                break;
            }
        }
コード例 #4
0
        private void Add_Item_Click(object sender, EventArgs e)
        {
            Form New_Item = new New_Item();

            New_Item.Show();
        }