C# Class Feedling.FeedWin

Interaction logic for FeedWin.xaml
Show file Open project: growse/Feedling Class Usage Examples

Public Methods

Method Description
Deselect ( ) : void

Called by FeedWinManager when the feed is selected. Forces a redraw that removes the background a solid colour.

FeedWin ( FeedConfigItem feeditem ) : System

Constructor! Hurrah!

Select ( ) : void

Called by FeedWinManager when the feed is selected. Forces a redraw that paints the background a solid colour.

UpdateNow ( ) : void

Called to request the feed to update itself.

Protected Methods

Method Description
OnActivated ( EventArgs e ) : void

Private Methods

Method Description
GetFeedType ( FeedConfigItem feedConfigItem ) : void

Takes a given FeedConfiItem and iterates through all the available plugins to see if any of them can handle it.

NearestX ( double input ) : int

Takes a given coordinate and turns it into the nearest grid X position

PinToDesktop ( ) : void

Sends window to the bottom.

RedrawWin ( ) : void

Thread-safe window drawing method. Decides basically what colour everything should be, depending on the state of the window (selected, pinned etc.) Also sets the text of the textblocks to either the feed items, some sort of error, or random mumblings from Hamlet.

StartProcess ( object url ) : void

Called to load the browser and pass it the given url.

TextBlock_MouseEnter ( object sender, System.Windows.Input.MouseEventArgs e ) : void
TextBlock_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
TextBlock_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
UnpinFromDesktop ( ) : void

Brings window back to the top.

Window_Loaded ( object sender, RoutedEventArgs e ) : void
Window_LocationChanged ( object sender, EventArgs e ) : void
Window_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Window_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
Window_MouseRightButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Window_MouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Window_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
movehandle_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
rssfeed_Updated ( object sender, EventArgs e ) : void
thisinst_ToggleMoveMode ( bool obj ) : void

Method Details

Deselect() public method

Called by FeedWinManager when the feed is selected. Forces a redraw that removes the background a solid colour.
public Deselect ( ) : void
return void

FeedWin() public method

Constructor! Hurrah!
public FeedWin ( FeedConfigItem feeditem ) : System
feeditem Feedling.Classes.FeedConfigItem
return System

OnActivated() protected method

protected OnActivated ( EventArgs e ) : void
e System.EventArgs
return void

Select() public method

Called by FeedWinManager when the feed is selected. Forces a redraw that paints the background a solid colour.
public Select ( ) : void
return void

UpdateNow() public method

Called to request the feed to update itself.
public UpdateNow ( ) : void
return void