Beispiel #1
0
        /// <summary>
        /// btnAddItem_Click
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddItem_Click(object sender, EventArgs e)
        {
            switch (this._mot)
            {
            case MovieObjectType.Genre:
                AdministerGenresForm agf = new AdministerGenresForm();

                if (agf.ShowDialog(this) == DialogResult.OK)
                {
                    this._LoadData();
                }
                break;

            case MovieObjectType.Actor:
            case MovieObjectType.Director:
            case MovieObjectType.Producer:
            case MovieObjectType.Musician:
            case MovieObjectType.Cameraman:
            case MovieObjectType.Cutter:
            case MovieObjectType.Writer:
                AdministerPersonsForm apf = new AdministerPersonsForm(true);

                DialogResult dr = apf.ShowDialog(this);
                this._LoadData();
                break;

            case MovieObjectType.Category:
                AdministerCategoriesForm acf = new AdministerCategoriesForm();

                if (acf.ShowDialog(this) == DialogResult.OK)
                {
                    this._LoadData();
                }
                break;
            }
        }
Beispiel #2
0
        /// <summary>
        /// btnAddItem_Click
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddItem_Click(object sender, EventArgs e)
        {
            switch(this._mot) {
                case MovieObjectType.Genre:
                    AdministerGenresForm agf = new AdministerGenresForm();

                    if(agf.ShowDialog(this) == DialogResult.OK) {
                        this._LoadData();
                    }
                    break;

                case MovieObjectType.Actor:
                case MovieObjectType.Director:
                case MovieObjectType.Producer:
                case MovieObjectType.Musician:
                case MovieObjectType.Cameraman:
                case MovieObjectType.Cutter:
                case MovieObjectType.Writer:
                    AdministerPersonsForm apf = new AdministerPersonsForm(true);

                    DialogResult dr = apf.ShowDialog(this);
                    this._LoadData();
                    break;

                case MovieObjectType.Category:
                    AdministerCategoriesForm acf = new AdministerCategoriesForm();

                    if(acf.ShowDialog(this) == DialogResult.OK) {
                        this._LoadData();
                    }
                    break;
            }
        }
Beispiel #3
0
        /// <summary>
        /// Handles the Click event of the subGenresToolStripMenuItem1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void subGenresToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            AdministerGenresForm agf = new AdministerGenresForm();

            if(agf.ShowDialog(this) == DialogResult.OK) {
                this._InitControls();
            }
        }