Ejemplo n.º 1
0
        private void UpdateEventClick(object sender, EventArgs e)
        {
            this.Hide();
            FormUpdateEvent frUpEv = new FormUpdateEvent(dataConnection, isAdmin);

            frUpEv.Show();
            frUpEv.Disposed += fr_Disposed;
        }
Ejemplo n.º 2
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            int  index    = checkedListBox1.CheckedIndices[0];
            int  idToShow = ids[index];
            bool isAnnual = isAnnuals[index];

            this.Hide();
            if (isAnnual)
            {
                FormUpdateAnnual fr = new FormUpdateAnnual(dataConnection, idToShow);
                fr.Show();
                fr.Disposed += fr_Disposed;
            }
            else
            {
                FormUpdateEvent fr = new FormUpdateEvent(dataConnection, idToShow);
                fr.Show();
                fr.Disposed += fr_Disposed;
            }
        }