public TWindowButton GetButton(TWindow wnd) { TWindowButton bt = null; buthash2.TryGetValue(wnd, out bt); return(bt); }
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(); //}; }