Exemple #1
0
        public XtraForm1()
        {
            InitializeComponent();

            this.accordionControl1.NavigationFrame = this.navigationFrame1;

            SplashScreenManager.ShowImage(Image.FromFile(".\\Images\\Splash.png"), true, true, SplashImagePainter.Painter);

            this.SetSplashScreenInfo("Checking connection to master database", 25);
            if (MasterDatabase.KeyFileExists && MasterDatabase.Connected)
            {
                this.SetSplashScreenInfo("Building menu", 50);

                this.menuManager = new MenuManager(
                    MasterDatabase.SqlConnection,
                    this.navigationFrame1,
                    this.accordionControl1,
                    this.barStatus);

                this.menuManager.ClientChanged   += new MenuManager.ClientChangeEventHandler(MenuManager_ClientChanged);
                this.menuManager.SettingsClicked += new EventHandler(this.SettingsClicked);
                this.SetSplashScreenInfo("Adding registered clients", 75);
                this.menuManager.AddClients(this.aceClient);
                this.SetSplashScreenInfo("Done", 100);
            }
        }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Image image = GetImage();

            // Show splash image
            SplashScreenManager.ShowImage(image, true, true, SplashImagePainter.Painter);

            Application.Run(new Form1());
        }
Exemple #3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            BonusSkins.Register();
            SkinManager.EnableFormSkins();

            Image image = GetImage();

            // Show splash image
            SplashScreenManager.ShowImage(image, true, true, SplashImagePainter.Painter);
            SplashImagePainter.Painter.ViewInfo.Stage = "Загрузка приложения"; Application.Run(new FormMain());
        }
        private void showSplashImageButton_Click(object sender, EventArgs e)
        {
            var image = SvgImage.FromResources("sample_2_17.splash-image.svg", this.GetType().Assembly);

            SplashScreenManager.ShowImage(image, new Size(600, 600), true, true, SplashFormStartPosition.CenterScreen, Point.Empty);
        }