예제 #1
0
        /// <summary>
        /// Creates ActionMonitor
        /// </summary>
        /// <param name="aType">
        /// Type of monitoring <see cref="ActionMonitorType"/>
        /// </param>
        /// <param name="aAction">
        /// Action which is monitored <see cref="Gtk.Action"/>
        /// </param>
        public ActionMonitor(ActionMonitorType aType, Gtk.Action aAction)
        {
            reference   = new WeakReference(aAction);
            monitorType = aType;
//			reference.Target = aAction;
            defaults = new ActionMonitorDefaults(ActionMonitorDefaultsType.Always, false);
        }
예제 #2
0
        /// <summary>
        /// Creates ActionMonitor
        /// </summary>
        /// <param name="aType">
        /// Type of monitoring <see cref="ActionMonitorType"/>
        /// </param>
        /// <param name="aAction">
        /// Action which is monitored <see cref="Gtk.Action"/>
        /// </param>
        /// <param name="aDefaults">
        /// Defaults how to resolve when DataSource is null <see cref="ActionMonitorDefaults"/>
        /// </param>
        public ActionMonitor(ActionMonitorType aType, Gtk.Action aAction, ActionMonitorDefaults aDefaults)
        {
            reference   = new WeakReference(aAction);
            monitorType = aType;
//			reference.Target = aAction;
            defaults = aDefaults;
        }