Beispiel #1
0
            void fontmenu_Show(object sender, Toolbox.Object.MenuAboutToBeShownEventArgs args)
            {
                var font_menu = (Toolbox.FontMenu)sender;

                // Font menu is a shared toolbox object, so check that this is the
                // intended target of the event.
                if (this.Equals(font_menu.GetAncestor <TextDocument>()))
                {
                    font_menu.Font = FontID;
                }
            }
Beispiel #2
0
 protected override void OnAboutToBeShown(Toolbox.Object.MenuAboutToBeShownEventArgs e)
 {
     Reporter.WriteLine("Menu about to be shown, show type = {0}", e.ShowSpec.Type);
     Reporter.WriteLine("");
 }