示例#1
0
        public void Run()
        {
            Graphics Gfx = PanelOutput.CreateGraphics();

            for (int y = 0; y < 7; y++)
            {
                for (int x = 0; x < 92; x++)
                {
                    Brush B = new SolidBrush(Main.Keyboard.GetLed(x, y));
                    Gfx.FillRectangle(B, new Rectangle(x * 15, y * 30, 15, 30));
                    B.Dispose();
                }
            }

            Gfx.Dispose();
        }
示例#2
0
文件: Panels.cs 项目: qmgindi/Au
    public static void CreatePanels()
    {
        var pm = PanelManager;

        pm["Files"].Content    = Files = new();
        pm["Outline"].Content  = Outline = new();
        pm["Cookbook"].Content = Cookbook = new();
        pm["Open"].Content     = Open = new();
        pm["Tasks"].Content    = Tasks = new();
        pm["Find"].Content     = Find = new();
        pm["Output"].Content   = Output = new();
        pm["Mouse"].Content    = Mouse = new();
        pm["Found"].Content    = Found = new();
        pm["Recipe"].Content   = Recipe = new();

        pm["documents"].Content = Editor = new();
        //DocPlaceholder_ = pm["documents"];

        var ti1 = Panels.PanelManager[Panels.Files].Parent.TabItem; if (ti1 != null)
        {
            ti1.MinWidth = 56;                                                                                  //make Files tabitem wider
        }
    }