This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Collections.Specialized; | |
| using System.ComponentModel; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Windows.Foundation; | |
| using Windows.UI.Xaml.Data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// A command whose sole purpose is to | |
| /// relay its functionality to other | |
| /// objects by invoking delegates. The | |
| /// default return value for the CanExecute | |
| /// method is 'true'. | |
| /// </summary> | |
| public class RelayCommand<T> : ICommand | |
| { | |
| #region Constructors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.ComponentModel.DataAnnotations; | |
| using System.Web.Mvc; | |
| namespace Mvc | |
| { | |
| [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using Humanizer; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Converters; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AsyncDelegateCommand : ICommand | |
| { | |
| protected readonly Predicate<object> _canExecute; | |
| protected Func<object, Task> _asyncExecute; | |
| public event EventHandler CanExecuteChanged | |
| { | |
| add { CommandManager.RequerySuggested += value; } | |
| remove { CommandManager.RequerySuggested -= value; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Dicom.Data; | |
| using Dicom; | |
| namespace gatewayservice | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #region Base Abstract Class | |
| public abstract class EnumBaseType<T> where T : EnumBaseType<T> | |
| { | |
| protected static List<T> enumValues = new List<T>(); | |
| public readonly string Key; | |
| public readonly int Value; | |
| public readonly int Diameter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.ComponentModel; | |
| using System.Windows; | |
| /// <summary> | |
| /// Preserve windows settings: Top, Left, Width, Height on one or extended screen. | |
| /// </summary> | |
| public class BaseWindow : Window | |
| { | |
| #region Private Fields |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// DataGrid preserving its column settings | |
| /// Initial source http://bengribaudo.com/blog/2012/03/14/1942/saving-restoring-wpf-datagrid-columns-size-sorting-and-order | |
| /// Updated code to add a context menu and choose column visibility | |
| /// </summary> | |
| public class EnhancedDataGrid : DataGrid | |
| { | |
| #region Private fields | |
| private bool _inWidthChange; |