CmisSync.SetupController.StartupItemChanged C# (CSharp) Method

StartupItemChanged() public method

Checkbox to add CmisSync to the list of programs to be started up when the user logs into Windows.
public StartupItemChanged ( bool create_startup_item ) : void
create_startup_item bool
return void
        public void StartupItemChanged(bool create_startup_item)
        {
            this.create_startup_item = create_startup_item;
        }

Usage Example

Esempio n. 1
0
        void ShowTutorialPage()
        {
            string slide_image_path = Path.Combine(NSBundle.MainBundle.ResourcePath, "Pixmaps", "tutorial-slide-" + Controller.TutorialCurrentPage + ".png");

            SlideImage = new NSImage(slide_image_path)
            {
                Size = new SizeF(350, 200)
            };
            SlideImageView = new NSImageView()
            {
                Image = SlideImage,
                Frame = new RectangleF(215, Frame.Height - 350, 350, 200)
            };
            ContentView.AddSubview(SlideImageView);
            switch (Controller.TutorialCurrentPage)
            {
            case 1:
            {
                Header             = Properties_Resources.WhatsNext;
                Description        = Properties_Resources.CmisSyncCreates;
                SkipTutorialButton = new NSButton()
                {
                    Title = Properties_Resources.SkipTutorial
                };
                ContinueButton = new NSButton()
                {
                    Title = Properties_Resources.Continue
                };
                SkipTutorialButton.Activated += delegate
                {
                    Controller.TutorialSkipped();
                };
                ContinueButton.Activated += delegate
                {
                    Controller.TutorialPageCompleted();
                };
                ContentView.AddSubview(SlideImageView);
                Buttons.Add(ContinueButton);
                Buttons.Add(SkipTutorialButton);
                break;
            }

            case 2:
            {
                Header         = Properties_Resources.Synchronization;
                Description    = Properties_Resources.DocumentsAre;
                ContinueButton = new NSButton()
                {
                    Title = Properties_Resources.Continue
                };
                ContinueButton.Activated += delegate
                {
                    Controller.TutorialPageCompleted();
                };
                Buttons.Add(ContinueButton);
                break;
            }

            case 3:
            {
                Header         = Properties_Resources.StatusIcon;
                Description    = Properties_Resources.StatusIconShows;
                ContinueButton = new NSButton()
                {
                    Title = Properties_Resources.Continue
                };
                ContinueButton.Activated += delegate
                {
                    Controller.TutorialPageCompleted();
                };
                Buttons.Add(ContinueButton);
                break;
            }

            case 4:
            {
                Header             = Properties_Resources.AddFolders;
                Description        = Properties_Resources.YouCan;
                StartupCheckButton = new NSButton()
                {
                    Frame = new RectangleF(190, Frame.Height - 400, 300, 18),
                    Title = Properties_Resources.Startup,
                    State = NSCellStateValue.On
                };
                StartupCheckButton.SetButtonType(NSButtonType.Switch);
                FinishButton = new NSButton()
                {
                    Title = Properties_Resources.Finish
                };
                StartupCheckButton.Activated += delegate
                {
                    Controller.StartupItemChanged(StartupCheckButton.State == NSCellStateValue.On);
                };
                FinishButton.Activated += delegate
                {
                    Controller.TutorialPageCompleted();
                };
                ContentView.AddSubview(StartupCheckButton);
                Buttons.Add(FinishButton);
                break;
            }
            }
        }
All Usage Examples Of CmisSync.SetupController::StartupItemChanged