windows setup: add slide and fix startup item checkbox

This commit is contained in:
Hylke Bons 2012-03-06 20:18:09 +00:00
parent cfde4a8c8e
commit abe8df00a5
4 changed files with 20 additions and 3 deletions

View file

@ -244,7 +244,7 @@ namespace SparkleShare {
public void UIHasLoaded ()
{
if (FirstRun)
//if (FirstRun)
ShowSetupWindow (PageType.Setup);
}

View file

@ -430,6 +430,18 @@ namespace SparkleShare {
"that will keep track of your projects.";
WPF.Image slide_image = new WPF.Image () {
Width = 350,
Height = 200
};
slide_image.Source = SparkleUIHelpers.GetBitmap ("tutorial-slide-1-windows");
ContentCanvas.Children.Add (slide_image);
Canvas.SetLeft (slide_image, 215);
Canvas.SetTop (slide_image, 130);
Button skip_tutorial_button = new Button () {
Content = "Skip tutorial"
};
@ -529,6 +541,10 @@ namespace SparkleShare {
Buttons.Add (finish_button);
check_box.Click += delegate {
Controller.StartupItemChanged (check_box.IsChecked.Value);
};
finish_button.Click += delegate {
Controller.TutorialPageCompleted ();

View file

@ -223,6 +223,9 @@
<Link>plugins\bitbucket.png</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="..\..\data\icons\process-syncing-sparkleshare-mac-i.png">
<Link>Pixmaps\process-syncing-sparkleshare-mac-i.png</Link>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Icons.tt">

View file

@ -78,7 +78,6 @@ namespace SparkleShare {
});
};
Program.Controller.FolderListChanged += delegate {
Dispatcher.Invoke ((Action) delegate {
SetNormalState ();
@ -177,7 +176,6 @@ namespace SparkleShare {
MenuItem folder_item = new MenuItem () {
Header = " SparkleShare"//,
,Icon = i
};
folder_item.Click += delegate {