예제 #1
0
        internal void CreateToolbarItem()
        {
            var bmp = new TransparentBitmap(ccNetAction.Image);

            bmp.TransparentColor = ccNetAction.ImageBackColor;
            var menuBar = CodeRush.Menus.Bars.Add("CCNet Bar");

            menuBar.Position = BarPosition.Top;
            var btn = menuBar.AddButton();

            btn.Caption = "Show CCNet";
            btn.Visible = true;
            btn.Enabled = true;
            btn.SetFace(bmp.Bitmap, bmp.MaskBitmap);
            btn.Click      += (s, e) => CCNetStatusWindow.ShowWindow();
            menuBar.Visible = true;
        }
예제 #2
0
 private void ccNetAction_Execute(ExecuteEventArgs ea)
 {
     CCNetStatusWindow.ShowWindow();
 }