mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
- Add support for filtering by category
- Break up main window into partials instead of using regions
This commit is contained in:
32
Application/MainWindow/Header.cs
Normal file
32
Application/MainWindow/Header.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using FeedCenter.Properties;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace FeedCenter
|
||||
{
|
||||
public partial class MainWindow
|
||||
{
|
||||
private void HandleHeaderLabelMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
// Ignore if the window is locked
|
||||
if (Settings.Default.WindowLocked)
|
||||
return;
|
||||
|
||||
// Start dragging
|
||||
DragMove();
|
||||
}
|
||||
|
||||
private void HandleCloseButtonClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// Close the window
|
||||
Close();
|
||||
}
|
||||
|
||||
private void HandleFeedLabelMouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
// Open the link for the current feed on a left double click
|
||||
if (e.ClickCount == 2 && e.ChangedButton == MouseButton.Left)
|
||||
BrowserCommon.OpenLink(_currentFeed.Link);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user