Revision dcca46c3
b/trunk/Pithos.Client.WPF/Shell/AboutView.xaml | ||
---|---|---|
37 | 37 |
<Hyperlink NavigateUri="https://cms.okeanos.grnet.gr/services/pithos/" >Support Site</Hyperlink> or <LineBreak/>send an email to the |
38 | 38 |
<Hyperlink NavigateUri="email:support@okeanos.grnet.gr">Support Address</Hyperlink> |
39 | 39 |
</TextBlock> |
40 |
<Button x:Name="CloseAbout" Content="OK" Grid.Row="6" HorizontalAlignment="Center" Width="75" Margin="5" /> |
|
40 |
<Grid Grid.Row="6" > |
|
41 |
<Grid.ColumnDefinitions> |
|
42 |
<ColumnDefinition Width="Auto"/> |
|
43 |
<ColumnDefinition Width="*"/> |
|
44 |
<ColumnDefinition Width="Auto"/> |
|
45 |
|
|
46 |
</Grid.ColumnDefinitions> |
|
47 |
<Button x:Name="CheckForUpdates" Content="Check For Upates" Grid.Column="0" HorizontalAlignment="Center" Width="110" Margin="5" /> |
|
48 |
<Button x:Name="CloseAbout" Content="OK" Grid.Column="2" HorizontalAlignment="Center" Width="75" Margin="5" /> |
|
49 |
</Grid> |
|
41 | 50 |
</Grid> |
42 | 51 |
</Window> |
b/trunk/Pithos.Client.WPF/Shell/AboutViewModel.cs | ||
---|---|---|
68 | 68 |
|
69 | 69 |
public string Bits { get; set; } |
70 | 70 |
|
71 |
[Import] |
|
72 |
public ShellViewModel Shell { get; set; } |
|
73 |
|
|
71 | 74 |
public AboutViewModel() |
72 | 75 |
{ |
73 | 76 |
Assembly assembly = Assembly.GetExecutingAssembly(); |
... | ... | |
86 | 89 |
{ |
87 | 90 |
this.TryClose(); |
88 | 91 |
} |
92 |
|
|
93 |
public void CheckForUpdates() |
|
94 |
{ |
|
95 |
Shell.CheckForUpgrade(); |
|
96 |
} |
|
89 | 97 |
} |
90 | 98 |
} |
b/trunk/Pithos.Client.WPF/Shell/ShellView.xaml | ||
---|---|---|
94 | 94 |
<Image Source="/PithosPlus;component/Images/Feedback.ico" /> |
95 | 95 |
</MenuItem.Icon> |
96 | 96 |
</MenuItem> |
97 |
<MenuItem Header="About Pithos" x:Name="AboutPithos" cal:Message.Attach="AboutPithos"> |
|
98 |
<MenuItem.Icon> |
|
99 |
<Image Source="/PithosPlus;component/Images/About.ico" /> |
|
100 |
</MenuItem.Icon> |
|
101 |
</MenuItem> |
|
102 |
<MenuItem Header="Check For Upgrade" x:Name="CheckForUpgrade" cal:Message.Attach="CheckForUpgrade"/> |
|
97 |
<MenuItem Header="Check For Updates" x:Name="CheckForUpgrade" cal:Message.Attach="CheckForUpgrade"/> |
|
103 | 98 |
<MenuItem Header="{Binding MiniStatusCaption}" x:Name="ShowMiniStatus" cal:Message.Attach="ShowMiniStatus"/> |
104 | 99 |
<MenuItem x:Name="GoToSiteRootMenu" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite()]" |
105 | 100 |
cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=1}, Path=DataContext}" > |
... | ... | |
113 | 108 |
<Image Source="/PithosPlus;component/Images/Web.ico" /> |
114 | 109 |
</MenuItem.Icon> |
115 | 110 |
</MenuItem> |
111 |
<MenuItem Header="About Pithos" x:Name="AboutPithos" cal:Message.Attach="AboutPithos"> |
|
112 |
<MenuItem.Icon> |
|
113 |
<Image Source="/PithosPlus;component/Images/About.ico" /> |
|
114 |
</MenuItem.Icon> |
|
115 |
</MenuItem> |
|
116 | 116 |
<Separator /> |
117 | 117 |
<MenuItem Header="Exit" Name="ExitPithos" cal:Message.Attach="ExitPithos" /> |
118 | 118 |
</ContextMenu> |
b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | ||
---|---|---|
84 | 84 |
/// * ShowFilePropertiesEvent: Raised when a shell command requests the display of the file/container properties dialog |
85 | 85 |
///</remarks> |
86 | 86 |
//TODO: CODE SMELL Why does the shell handle the SelectiveSynchChanges? |
87 |
[Export(typeof(IShell))]
|
|
87 |
[Export(typeof(IShell)), Export(typeof(ShellViewModel))]
|
|
88 | 88 |
public class ShellViewModel : Screen, IStatusNotification, IShell, |
89 | 89 |
IHandle<Notification>, IHandle<SelectiveSynchChanges>, IHandle<ShowFilePropertiesEvent> |
90 | 90 |
{ |
... | ... | |
228 | 228 |
if (!updaterequired) |
229 | 229 |
//Sparkle raises events on a background thread |
230 | 230 |
Execute.OnUIThread(()=> |
231 |
ShowBalloonFor(new Notification{Title="Pithos+ is up to date",Message="You have the latest Pitsos+ version. No update is required"}));
|
|
231 |
ShowBalloonFor(new Notification{Title="Pithos+ is up to date",Message="You have the latest Pithos+ version. No update is required"}));
|
|
232 | 232 |
} |
233 | 233 |
} |
234 | 234 |
|
Also available in: Unified diff