Exemple #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Shell32.DragAcceptFiles(this.Handle, true);

            //if (AeroGlassCompositionEnabled)
            //{
            //    //ExcludeControlFromAeroGlass(mdiWorkSpace1);
            //    ResetAeroGlass();
            //}

            //
            taskBar1.AeroBackground = Blumind.Controls.Aero.GlassForm.AeroGlassCompositionEnabled;
            taskBar1.Font           = UITheme.Default.DefaultFont;
            StartMenu.Renderer      = UITheme.Default.ToolStripRenderer;
            HelpMenu.Renderer       = UITheme.Default.ToolStripRenderer;

            if (RecentFilesManage.Default.TrySave())
            {
                ListRecentFiles();
            }

            if (Forms.IsEmpty())
            {
                NewDocument();
            }

            BuildImportMenus();
            RefreshFunctionTaskBarItems();
        }
Exemple #2
0
        //private void OnFileSystemWatcherChanged(object sender, FileSystemEventArgs e)
        //{
        //    Dispatcher.Current.Invoke(() =>
        //    {
        //        try
        //        {
        //            Image image = CreateImageFromFile(e.FullPath);
        //            LoadCircuitBoard(image);
        //        }
        //        catch (Exception exception)
        //        {
        //            Debug.WriteLine(exception);
        //        }
        //    });
        //}

        protected override void OnCreate(ref CreateWindowPacket packet)
        {
            base.OnCreate(ref packet);

            Shell32.DragAcceptFiles(Handle, true);

            textBrush  = new SolidColorBrush(Dx.D2D.Context, textColor);
            textFormat = new TextFormat(Dx.TextFactory, "Consolas", 16);

            LoadDefaultCircuitBoard();
            performanceMonitor.Start();
        }