Exemple #1
0
 private void ctxAddReference_DotNET_Click(object sender, EventArgs e)
 {
   BrowseGACForm browseGacForm = new BrowseGACForm();
   if (browseGacForm.ShowDialog((IWin32Window) this) == DialogResult.OK)
   {
     foreach (AssemblyName assemblyName in browseGacForm.SelectedAssemblies)
       this.AddReference((BuildReference) new GACBuildReference(assemblyName.Name, assemblyName.Version), true);
     this.OptionsChanged = true;
   }
   browseGacForm.Dispose();
 }
Exemple #2
0
        private void ctxAddReference_DotNET_Click(object sender, EventArgs e)
        {
            BrowseGACForm browseGacForm = new BrowseGACForm();

            if (browseGacForm.ShowDialog((IWin32Window)this) == DialogResult.OK)
            {
                foreach (AssemblyName assemblyName in browseGacForm.SelectedAssemblies)
                {
                    this.AddReference((BuildReference) new GACBuildReference(assemblyName.Name, assemblyName.Version), true);
                }
                this.OptionsChanged = true;
            }
            browseGacForm.Dispose();
        }