Esempio n. 1
0
 // Populate the context choice list on popup
 private void editControl1_ContextChoiceOpen(Syncfusion.Windows.Forms.Edit.Interfaces.IContextChoiceController controller)
 {
     controller.Items.Add("Chat", "This is Chat", this.editControl1.ContextChoiceController.Images["Image0"]);
     controller.Items.Add("Database", "This is Database", this.editControl1.ContextChoiceController.Images["Image1"]);
     controller.Items.Add("NewFile", "This is NewFile", this.editControl1.ContextChoiceController.Images["Image2"]);
     controller.Items.Add("Find", "This is Find", this.editControl1.ContextChoiceController.Images["Image3"]);
     controller.Items.Add("Home", "This is Home", this.editControl1.ContextChoiceController.Images["Image4"]);
     controller.Items.Add("PieChart", "This is PieChart", this.editControl1.ContextChoiceController.Images["Image6"]);
     controller.Items.Add("Tools", "This is Tools", this.editControl1.ContextChoiceController.Images["Image7"]);
 }
Esempio n. 2
0
 private void editControl1_ContextChoiceOpen(Syncfusion.Windows.Forms.Edit.Interfaces.IContextChoiceController controller)
 {
     controller.Items.Add("Copy", "This is Copy", this.editControl1.ContextChoiceController.Images["Image1"]);
     controller.Items.Add("Cut", "This is Cut", this.editControl1.ContextChoiceController.Images["Image2"]);
     controller.Items.Add("Paste", "This is Paste", this.editControl1.ContextChoiceController.Images["Image5"]);
     controller.Items.Add("Find", "This is Find", this.editControl1.ContextChoiceController.Images["Image3"]);
     controller.Items.Add("Replace", "This is Replace", this.editControl1.ContextChoiceController.Images["Image6"]);
     controller.Items.Add("Open", "This is Open", this.editControl1.ContextChoiceController.Images["Image4"]);
     controller.Items.Add("Save", "This is Save", this.editControl1.ContextChoiceController.Images["Image7"]);
     controller.Items.Add("Test", "This is Test", this.editControl1.ContextChoiceController.Images["Image8"]);
     controller.Items.Add("Bookmark", "This is Bookmark", this.editControl1.ContextChoiceController.Images["Image0"]);
 }
Esempio n. 3
0
        private void editControl1_ContextChoiceOpen(Syncfusion.Windows.Forms.Edit.Interfaces.IContextChoiceController controller)
        {
            reader = new XmlTextReader(intellisensePath);
            while (reader.Read())
            {
                string itemname = "", tooltip = "";
                switch (reader.NodeType)
                {
                case (XmlNodeType.Element):

                    if (reader.Name == "Items")
                    {
                        if (reader.AttributeCount > 0)
                        {
                            while (reader.MoveToNextAttribute())
                            {
                                if (reader.Name == "Name")
                                {
                                    itemname = reader.Value;
                                }
                                if (reader.Name == "Tooltip")
                                {
                                    tooltip = reader.Value;
                                }
                                if (reader.Name == "Image")
                                {
                                    controller.Items.Add(itemname, tooltip, this.editControl1.ContextChoiceController.Images[reader.Value]);
                                }
                            }
                        }
                    }

                    break;
                }
            }
        }
Esempio n. 4
0
 private void editControl1_ContextChoiceClose(Syncfusion.Windows.Forms.Edit.Interfaces.IContextChoiceController controller, System.Windows.Forms.DialogResult dialogresult)
 {
     controller.Items.Clear();
 }
Esempio n. 5
0
 private void editControl1_ContextChoiceItemSelected(Syncfusion.Windows.Forms.Edit.Interfaces.IContextChoiceController sender, Syncfusion.Windows.Forms.Edit.ContextChoiceItemSelectedEventArgs e)
 {
     // Display the Context Choice item selected
     Console.WriteLine("SelectedItem : " + e.SelectedItem.Text);
 }