Beispiel #1
0
        public TWindowButton GetButton(TWindow wnd)
        {
            TWindowButton bt = null;

            buthash2.TryGetValue(wnd, out bt);
            return(bt);
        }
Beispiel #2
0
        private void createButton(TWindow wnd)
        {
            CoreLib.Log(wnd.hwnd.ToString());

            var but = new TWindowButton(wnd);

            var img = wnd.GetIcon(new Size(22, 22));

            if (img != null)
            {
                but.Image = img;
                img.Show();
            }

            but.Label = wnd.GetName();
            buttonTable.Add(but);

            buthash2.Add(wnd, but);

            //but.Clicked += (s, e) => {
            //wnd.BringToFront();
            //};
        }
Beispiel #3
0
        private void createButton(TWindow wnd)
        {
            CoreLib.Log(wnd.hwnd.ToString());

            var but = new TWindowButton(wnd);

            var img = wnd.GetIcon(new Size(22, 22));
            if (img != null) {
                but.Image = img;
                img.Show();
            }

            but.Label = wnd.GetName();
            buttonTable.Add(but);

            buthash2.Add(wnd, but);

            //but.Clicked += (s, e) => {
            //wnd.BringToFront();
            //};
        }