Paint.AppDelegate.FinishedLaunching C# (CSharp) Méthode

FinishedLaunching() public méthode

public FinishedLaunching ( UIApplication app, NSDictionary options ) : bool
app UIApplication
options NSDictionary
Résultat bool
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            this.imageDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "..", FolderNameLibrary, FolderNameImageData);
            this.masterImagePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            this.versionDataFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), VersionFileName);

            this.toolboxLayoutManager = new ToolboxLayoutManager();

            this.CreateDirectoryStructure();

            this.window = new UIWindow(UIScreen.MainScreen.Bounds);

            var launchScreen = new LaunchScreen();
            if (File.Exists(versionDataFilePath))
            {
                launchScreen.AllowUserExit = true;
            }

            launchScreen.LaunchScreenComplete += (sender, e) => {
                this.LaunchHomeScreen();
            };

            this.window.RootViewController = launchScreen;
            this.window.MakeKeyAndVisible();

            return true;
        }