private void PackageCB_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox          cb          = (ComboBox)sender;
            SelectablePackage selectedMod = (SelectablePackage)cb.SelectedItem;

            SelectedDatabaseObject = selectedMod;
        }
 private void DatabaseAdder_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (ignoreResult)
     {
         SelectedDatabaseObject    = null;
         SelectedDependency        = null;
         SelectedGlobalDependency  = null;
         SelectedLogicalDependency = null;
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Alphabetical sorting of packages by NameFormatted property at this level (not recursive)
 /// </summary>
 /// <param name="x">First package to compare</param>
 /// <param name="y">Second package to compare</param>
 /// <returns></returns>
 public static int CompareModsName(SelectablePackage x, SelectablePackage y)
 {
     return(x.NameFormatted.CompareTo(y.NameFormatted));
 }
Esempio n. 4
0
 /// <summary>
 /// Alphabetical sorting of packages by PackageName property at this level (not recursive)
 /// </summary>
 /// <param name="x">First package to compare</param>
 /// <param name="y">Second package to compare</param>
 /// <returns></returns>
 public static int CompareModsPackageName(SelectablePackage x, SelectablePackage y)
 {
     return(x.PackageName.CompareTo(y.PackageName));
 }