Exemplo n.º 1
0
        public void AddSaveMenu()
        {
            try
            {
                Utility.NiceMenu.NiceMenu parentMenu = Client.ClientUI.getInstance().myNiceMenu.SearchNiceMenuItem("Poll");
                if (parentMenu != null)
                {
                    myMenu        = new Utility.NiceMenu.NiceMenu();
                    myMenu.Click += new EventHandler(saveMenu_Click);
                    if (question.Length > 15)
                    {
                        myMenu.Text = question.Substring(0, 15) + "...";
                    }
                    else
                    {
                        myMenu.Text = question;
                    }
                    parentMenu.MenuItems.Add(myMenu);
                }

                //add menu to save as
                parentMenu = Client.ClientUI.getInstance().myNiceMenu.SearchNiceMenuItem("Poll", 2);
                if (parentMenu != null)
                {
                    myMenu        = new Utility.NiceMenu.NiceMenu();
                    myMenu.Click += new EventHandler(saveAsMenu_Click);
                    //myMenu.Click += new EventHandler(mNewMenuDocumentsSaveAs_Click);
                    if (question.Length > 15)
                    {
                        myMenu.Text = question.Substring(0, 15) + "...";
                    }
                    else
                    {
                        myMenu.Text = question;
                    }

                    parentMenu.MenuItems.Add(myMenu);
                }
            }
            catch (Exception exp)
            {
                WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("Polling ===>Polling.cs @AddSaveMenu() line==> 100", exp, null, false);
            }
        }
Exemplo n.º 2
0
        public void AddSaveMenu()
        {
            try
            {
                Utility.NiceMenu.NiceMenu parentMenu = Client.ClientUI.getInstance().myNiceMenu.SearchNiceMenuItem("Poll");
                if(parentMenu != null)
                {
                    myMenu = new Utility.NiceMenu.NiceMenu();
                    myMenu.Click += new EventHandler(saveMenu_Click);
                    if(question.Length >15)
                        myMenu.Text = question.Substring(0,15) + "...";
                    else
                        myMenu.Text = question;
                    parentMenu.MenuItems.Add(myMenu);
                }

                //add menu to save as
                parentMenu = Client.ClientUI.getInstance().myNiceMenu.SearchNiceMenuItem("Poll",2);
                if(parentMenu != null)
                {
                    myMenu = new Utility.NiceMenu.NiceMenu();
                    myMenu.Click += new EventHandler(saveAsMenu_Click);
                    //myMenu.Click += new EventHandler(mNewMenuDocumentsSaveAs_Click);
                    if(question.Length >15)
                        myMenu.Text = question.Substring(0,15) + "...";
                    else
                        myMenu.Text = question;

                    parentMenu.MenuItems.Add(myMenu);
                }

            }
            catch(Exception exp)
            {
                WebMeeting.Client.ClientUI.getInstance().ShowExceptionMessage("Polling ===>Polling.cs @AddSaveMenu() line==> 100",exp,null,false);
            }
        }