void ShowFinishedPage() { Header = Properties_Resources.Ready; Description = Properties_Resources.YouCanFind; OpenFolderButton = new NSButton() { Title = String.Format("Open {0}", Path.GetFileName(Controller.PreviousPath)) }; FinishButton = new NSButton() { Title = Properties_Resources.Finish }; OpenFolderButton.Activated += delegate { InvokeOnMainThread(delegate { Controller.OpenFolderClicked(); }); }; FinishButton.Activated += delegate { InvokeOnMainThread(delegate { Controller.FinishPageCompleted(); }); }; Buttons.Add(FinishButton); Buttons.Add(OpenFolderButton); NSApplication.SharedApplication.RequestUserAttention(NSRequestUserAttentionType.CriticalRequest); }
private void ShowFinishedPage() { UrgencyHint = true; Header = CmisSync.Properties_Resources.Ready; Description = CmisSync.Properties_Resources.YouCanFind; // A button that opens the synced folder Button open_folder_button = new Button(string.Format("Open {0}", System.IO.Path.GetFileName(Controller.PreviousPath))); open_folder_button.Clicked += delegate { Controller.OpenFolderClicked(); }; Button finish_button = new Button(CmisSync.Properties_Resources.Finish); finish_button.Clicked += delegate { Controller.FinishPageCompleted(); }; Add(new Label("")); AddButton(open_folder_button); AddButton(finish_button); //System.Media.SystemSounds.Exclamation.Play(); }
private void SetupAddFinish() { // UI elements. Header = Properties_Resources.Ready; Description = String.Format(Properties_Resources.YouCanFind, Properties_Resources.ApplicationName); TaskbarItemInfo.ProgressValue = 0.0; TaskbarItemInfo.ProgressState = TaskbarItemProgressState.None; Button finish_button = new Button() { Content = Properties_Resources.Finish }; Button open_folder_button = new Button() { Content = Properties_Resources.OpenFolder }; Buttons.Add(open_folder_button); Buttons.Add(finish_button); // Actions. finish_button.Click += delegate { Controller.FinishPageCompleted(); }; open_folder_button.Click += delegate { Controller.OpenFolderClicked(); }; SystemSounds.Exclamation.Play(); }
partial void OnOpen(MonoMac.Foundation.NSObject sender) { Controller.OpenFolderClicked(); }