<Hyperlink NavigateUri="https://cms.okeanos.grnet.gr/services/pithos/" >Support Site</Hyperlink> or <LineBreak/>send an email to the
<Hyperlink NavigateUri="email:support@okeanos.grnet.gr">Support Address</Hyperlink>
</TextBlock>
- <Button x:Name="CloseAbout" Content="OK" Grid.Row="6" HorizontalAlignment="Center" Width="75" Margin="5" />
+ <Grid Grid.Row="6" >
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ <ColumnDefinition Width="Auto"/>
+
+ </Grid.ColumnDefinitions>
+ <Button x:Name="CheckForUpdates" Content="Check For Upates" Grid.Column="0" HorizontalAlignment="Center" Width="110" Margin="5" />
+ <Button x:Name="CloseAbout" Content="OK" Grid.Column="2" HorizontalAlignment="Center" Width="75" Margin="5" />
+ </Grid>
</Grid>
</Window>
public string Bits { get; set; }
+ [Import]
+ public ShellViewModel Shell { get; set; }
+
public AboutViewModel()
{
Assembly assembly = Assembly.GetExecutingAssembly();
{
this.TryClose();
}
+
+ public void CheckForUpdates()
+ {
+ Shell.CheckForUpgrade();
+ }
}
}
<Image Source="/PithosPlus;component/Images/Feedback.ico" />
</MenuItem.Icon>
</MenuItem>
- <MenuItem Header="About Pithos" x:Name="AboutPithos" cal:Message.Attach="AboutPithos">
- <MenuItem.Icon>
- <Image Source="/PithosPlus;component/Images/About.ico" />
- </MenuItem.Icon>
- </MenuItem>
- <MenuItem Header="Check For Upgrade" x:Name="CheckForUpgrade" cal:Message.Attach="CheckForUpgrade"/>
+ <MenuItem Header="Check For Updates" x:Name="CheckForUpgrade" cal:Message.Attach="CheckForUpgrade"/>
<MenuItem Header="{Binding MiniStatusCaption}" x:Name="ShowMiniStatus" cal:Message.Attach="ShowMiniStatus"/>
<MenuItem x:Name="GoToSiteRootMenu" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite()]"
cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=1}, Path=DataContext}" >
<Image Source="/PithosPlus;component/Images/Web.ico" />
</MenuItem.Icon>
</MenuItem>
+ <MenuItem Header="About Pithos" x:Name="AboutPithos" cal:Message.Attach="AboutPithos">
+ <MenuItem.Icon>
+ <Image Source="/PithosPlus;component/Images/About.ico" />
+ </MenuItem.Icon>
+ </MenuItem>
<Separator />
<MenuItem Header="Exit" Name="ExitPithos" cal:Message.Attach="ExitPithos" />
</ContextMenu>
/// * ShowFilePropertiesEvent: Raised when a shell command requests the display of the file/container properties dialog
///</remarks>
//TODO: CODE SMELL Why does the shell handle the SelectiveSynchChanges?
- [Export(typeof(IShell))]
+ [Export(typeof(IShell)), Export(typeof(ShellViewModel))]
public class ShellViewModel : Screen, IStatusNotification, IShell,
IHandle<Notification>, IHandle<SelectiveSynchChanges>, IHandle<ShowFilePropertiesEvent>
{
if (!updaterequired)
//Sparkle raises events on a background thread
Execute.OnUIThread(()=>
- ShowBalloonFor(new Notification{Title="Pithos+ is up to date",Message="You have the latest Pitsos+ version. No update is required"}));
+ ShowBalloonFor(new Notification{Title="Pithos+ is up to date",Message="You have the latest Pithos+ version. No update is required"}));
}
}