Beispiel #1
0
        private void ContactInit()
        {
            ContactMenuItems = active_plugin.contact_plugin.ContactRightClickMenu();
            OurAutoCompleteBox box = Broker.get_instance().GetContactSearchBox();

            if (active_plugin.contact_plugin.HandleSearchBox(box))
            {
                box.Visibility = Visibility.Visible;
            }
            active_plugin.state = PluginData.PluginDataState.LOADED;
        }
Beispiel #2
0
        public ContactPluginManager()
        {
            OurAutoCompleteBox box = Broker.get_instance().GetContactSearchBox();

            if (Application.Current == null)
            {
                return;
            }
            Application.Current.Dispatcher.BeginInvoke((Action)(() => {
                box.Visibility = Visibility.Collapsed;
            }));
        }
        public override bool HandleSearchBox(OurAutoCompleteBox box)
        {
            search_box                          = box;
            real_search_box                     = search_box.GetActualTextbox();
            real_search_box.ContextMenu         = new ContextMenu();
            real_search_box.ContextMenuOpening += search_box_ContextMenuOpening;

            foreach (MenuItem item in ContactRightClickMenu())
            {
                real_search_box.ContextMenu.Items.Add(item);
            }

            search_box.PreviewKeyUp     += search_box_PreviewKeyUp;
            search_box.MouseDoubleClick += search_box_MouseDoubleClick;
            if (number_to_alias.Count > 0)
            {
                refresh_search_box();
            }
            return(true);
        }
Beispiel #4
0
 public abstract bool HandleSearchBox(OurAutoCompleteBox box);