Esempio n. 1
0
        /// <summary>
        /// Button add clicked.
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">event</param>
        private void Button_Add_Click(object sender, EventArgs e)
        {
            ModifyFileVersionForm modifyFileVersionForm = new ModifyFileVersionForm(mUpdateConfiguration, null);

            modifyFileVersionForm.Event_ModifyFileVersion += new CbGeneric(ModifyFileVersionCallback);
            modifyFileVersionForm.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// Data grid view double clicked.
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">event</param>
        private void DataGridView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                return;
            }

            DataGridView.HitTestInfo hitTestInfo = dataGridView.HitTest(e.X, e.Y);
            if (hitTestInfo.RowIndex >= 0)
            {
                FileUnit fileUnit = dataGridView.SelectedRows[0].DataBoundItem as FileUnit;
                ModifyFileVersionForm modifyFileVersionForm = new ModifyFileVersionForm(mUpdateConfiguration, fileUnit);
                modifyFileVersionForm.Event_ModifyFileVersion += new CbGeneric(ModifyFileVersionCallback);
                modifyFileVersionForm.Show();
            }
        }