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.Windows; | |
| namespace PageableListBox | |
| { | |
| public partial class MainWindow : Window | |
| { | |
| public MainWindow() | |
| { | |
| InitializeComponent(); |
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 LoadingWindow() | |
| { | |
| InitializeComponent(); | |
| DataContext = this; | |
| Loaded += LoadingWindow_Loaded; | |
| } | |
| void LoadingWindow_Loaded(object sender, RoutedEventArgs e) |
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 PageParameterData<TVm> : AbstractNotifyPropertyChanged | |
| { | |
| private int _currentPage; | |
| private int _pageCount; | |
| private int _pageSize; | |
| private int _totalSize; | |
| private int _startingIndex; | |
| private int _endingIndex; | |
| private readonly Command _cmdPageForward; | |
| private readonly Command _cmdPageToEnd; |
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 RelayCommand : ICommand | |
| { | |
| #region Fields | |
| readonly Action<object> _execute; | |
| readonly Predicate<object> _canExecute; | |
| #endregion // Fields | |
| #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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" | |
| xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" | |
| xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"> | |
| <Bundle Name="Bootstrapper" Version="1.0.0.0" UpgradeCode="a5cbe250-7fd7-476c-9b44-9d73b92db6c9"> | |
| <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense"> | |
| <bal:WixStandardBootstrapperApplication | |
| LicenseUrl="" | |
| xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" /> | |
| </BootstrapperApplicationRef> |
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 static class Masking | |
| { | |
| private static readonly DependencyPropertyKey _maskExpressionPropertyKey = DependencyProperty.RegisterAttachedReadOnly("MaskExpression", | |
| typeof(Regex), | |
| typeof(Masking), | |
| new FrameworkPropertyMetadata()); | |
| /// <summary> | |
| /// Identifies the <see cref="Mask"/> dependency property. | |
| /// </summary> |
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
| private static long GetNewMessageStatusId(MessageStatus messageStatus) | |
| { | |
| long messageStatusId = 1; | |
| try | |
| { | |
| string tableName = messageStatus == MessageStatus.Delivered ? "message_delivery_lookups" : "message_read_lookups"; | |
| using (var dataContext = new MessageConnector()) | |
| { |
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 partial class MainWindow : Window | |
| { | |
| private Session _session; | |
| private Project _project; | |
| public MainWindow() | |
| { | |
| InitializeComponent(); | |
| Closing += MainWindow_Closing; |