コード例 #1
0
        private void PackageCB_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox          cb          = (ComboBox)sender;
            SelectablePackage selectedMod = (SelectablePackage)cb.SelectedItem;

            SelectedDatabaseObject = selectedMod;
        }
コード例 #2
0
 private void DatabaseAdder_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (ignoreResult)
     {
         SelectedDatabaseObject    = null;
         SelectedDependency        = null;
         SelectedGlobalDependency  = null;
         SelectedLogicalDependency = null;
     }
 }
コード例 #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));
 }
コード例 #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));
 }