예제 #1
0
        private void OnIconPressEvent(object o, IconPressReleaseEventArgs args)
        {
            if (args.IconPos == EntryIconPosition.Primary)
            {
                ShowPopup();
            }
            else                 // clear-button pressed
            {
                Text = String.Empty;

                // update search results
                OnSearch();
            }
        }
예제 #2
0
파일: IconEntry.cs 프로젝트: balihb/basenji
        private static void SignalCallback(IntPtr arg0, int arg1, IntPtr arg2, IntPtr gch)
        {
            IconPressReleaseEventArgs args = new IconPressReleaseEventArgs();

            try {
                GCHandle handle = (GCHandle)gch;
                Signal   target = handle.Target as Signal;
                if (target == null)
                {
                    throw new Exception("Unknown signal GC handle received " + gch);
                }

                args.Args = new object[] { arg1 };
                IconPressReleaseEventHandler handler = (IconPressReleaseEventHandler)target.Handler;
                handler(GLib.Object.GetObject(arg0), args);
            } catch (Exception exception) {
                ExceptionManager.RaiseUnhandledException(exception, false);
            }
        }
예제 #3
0
파일: IconEntry.cs 프로젝트: pulb/basenji
        private static void SignalCallback(IntPtr arg0, int arg1, IntPtr arg2, IntPtr gch)
        {
            IconPressReleaseEventArgs args = new IconPressReleaseEventArgs();
            try {
                GCHandle handle = (GCHandle) gch;
                Signal target = handle.Target as Signal;
                if (target == null) {
                    throw new Exception("Unknown signal GC handle received " + gch);
                }

                args.Args = new object[] { arg1 };
                IconPressReleaseEventHandler handler = (IconPressReleaseEventHandler)target.Handler;
                handler(GLib.Object.GetObject(arg0), args);

            } catch (Exception exception) {
                ExceptionManager.RaiseUnhandledException(exception, false);
            }
        }
예제 #4
0
파일: SearchEntry.cs 프로젝트: pulb/basenji
        private void OnIconPressEvent(object o, IconPressReleaseEventArgs args)
        {
            if (args.IconPos == EntryIconPosition.Primary) {
                ShowPopup();
            } else { // clear-button pressed
                Text = String.Empty;

                // update search results
                OnSearch();
            }
        }
예제 #5
0
파일: DateChooser.cs 프로젝트: pulb/basenji
 private void OnIconPressEvent(object o, IconPressReleaseEventArgs args)
 {
     ShowPopup();
 }
예제 #6
0
 private void OnIconPressEvent(object o, IconPressReleaseEventArgs args)
 {
     ShowPopup();
 }