Exemple #1
0
        /// <summary>
        /// Assign the file given the details specified
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void bnAssignFile_Click(object sender, EventArgs e)
        {
            // OK we are going to assign this file - first we need to create the application itself
            InstalledApplication application = new InstalledApplication();

            application.Name      = tbProductName.Text;
            application.Publisher = tbPublisher.Text;
            application.Version   = tbVersion.Text;
            application.Add();
            _file.Assign(application.ApplicationID);
        }
Exemple #2
0
 /// <summary>
 /// Called to unassign this file
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void bnUnassign_Click(object sender, EventArgs e)
 {
     _displayedFile.Assign(0);
     UpdateFields();
 }