/// <summary>
 /// Initializes a new instance of the <see cref="BinaryDashboard"/> class.
 /// </summary>
 protected BinaryDashboard()
     : base()
 {
     SetValue(TrueColorProperty, new ColorPoint { HiColor = Color.FromArgb(0xFF, 0x6C, 0xFA, 0x20), LowColor = Color.FromArgb(0xFF, 0xDC, 0xF9, 0xD4) });
     SetValue(FalseColorProperty, new ColorPoint { HiColor = Color.FromArgb(0xFF, 0xFA, 0x65, 0x65), LowColor = Color.FromArgb(0xFF, 0xFC, 0xD5, 0xD5) });
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(this.PropertyHasChanged);
 }
Example #2
0
 protected void RaisePropertyChanged(string propertyName)
 {
     System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
     if ((propertyChanged != null))
     {
         propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
     }
 }
Example #3
0
 public virtual void OnPropertyChanged(string propertyName)
 {
     System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
     if ((handler != null))
     {
         handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
     }
 }
Example #4
0
 protected void OnPropertyChanged(string name)
 {
     System.ComponentModel.PropertyChangedEventHandler handler = PropertyChanged;
     if (handler != null)
     {
         handler(this, new System.ComponentModel.PropertyChangedEventArgs(name));
     }
 }
Example #5
0
 protected void NotifyHasCustomErrors()
 {
     System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
     if ((handler != null))
     {
         handler(this, new System.ComponentModel.PropertyChangedEventArgs("HasCustomValidationError"));
         handler(this, new System.ComponentModel.PropertyChangedEventArgs("CustomErrors"));
     }
 }
Example #6
0
 protected virtual void OnPropertyChanged(string propertyName)
 {
     System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
     if (handler != null)
     {
         var e = new System.ComponentModel.PropertyChangedEventArgs(propertyName);
         handler(this, e);
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WallThermometer"/> class.
 /// </summary>
 public WallThermometer()
     : base()
 {
     InitializeComponent();
     ValueTextColor = Colors.Black;
     FaceTextColor = Colors.Black;
     _delegate.ValueTextColor = Colors.Black;
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(this.OneOfMyPropertiesChanged);
     _delegate.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(this.OneOfTheDelegatesPropertiesChanged);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WallThermometer"/> class.
 /// </summary>
 public WallThermometer()
     : base()
 {
     InitializeComponent();
     ValueTextColor             = Colors.Black;
     FaceTextColor              = Colors.Black;
     _delegate.ValueTextColor   = Colors.Black;
     PropertyChanged           += new System.ComponentModel.PropertyChangedEventHandler(this.OneOfMyPropertiesChanged);
     _delegate.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(this.OneOfTheDelegatesPropertiesChanged);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BinaryDashboard"/> class.
 /// </summary>
 protected BinaryDashboard()
     : base()
 {
     SetValue(TrueColorProperty, new ColorPoint {
         HiColor = Color.FromArgb(0xFF, 0x6C, 0xFA, 0x20), LowColor = Color.FromArgb(0xFF, 0xDC, 0xF9, 0xD4)
     });
     SetValue(FalseColorProperty, new ColorPoint {
         HiColor = Color.FromArgb(0xFF, 0xFA, 0x65, 0x65), LowColor = Color.FromArgb(0xFF, 0xFC, 0xD5, 0xD5)
     });
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(this.PropertyHasChanged);
 }
Example #10
0
    static int set_PropertyChanged(IntPtr L)
    {
        try
        {
            Newtonsoft.Json.Linq.JObject obj = (Newtonsoft.Json.Linq.JObject)ToLua.CheckObject(L, 1, typeof(Newtonsoft.Json.Linq.JObject));
            EventObject arg0 = null;

            if (LuaDLL.lua_isuserdata(L, 2) != 0)
            {
                arg0 = (EventObject)ToLua.ToObject(L, 2);
            }
            else
            {
                return LuaDLL.luaL_throw(L, "The event 'Newtonsoft.Json.Linq.JObject.PropertyChanged' can only appear on the left hand side of += or -= when used outside of the type 'Newtonsoft.Json.Linq.JObject'");
            }

            if (arg0.op == EventOp.Add)
            {
                System.ComponentModel.PropertyChangedEventHandler ev = (System.ComponentModel.PropertyChangedEventHandler)DelegateFactory.CreateDelegate(typeof(System.ComponentModel.PropertyChangedEventHandler), arg0.func);
                obj.PropertyChanged += ev;
            }
            else if (arg0.op == EventOp.Sub)
            {
                System.ComponentModel.PropertyChangedEventHandler ev = (System.ComponentModel.PropertyChangedEventHandler)LuaMisc.GetEventHandler(obj, typeof(Newtonsoft.Json.Linq.JObject), "PropertyChanged");
                Delegate[] ds = ev.GetInvocationList();
                LuaState state = LuaState.Get(L);

                for (int i = 0; i < ds.Length; i++)
                {
                    ev = (System.ComponentModel.PropertyChangedEventHandler)ds[i];
                    LuaDelegate ld = ev.Target as LuaDelegate;

                    if (ld != null && ld.func == arg0.func)
                    {
                        obj.PropertyChanged -= ev;
                        state.DelayDispose(ld.func);
                        break;
                    }
                }

                arg0.func.Dispose();
            }

            return 0;
        }
        catch(Exception e)
        {
            return LuaDLL.toluaL_exception(L, e);
        }
    }
Example #11
0
 /// <summary>
 /// Construtor padrão da classe
 /// </summary>
 /// <param name="entity">Entidade associada.</param>
 /// <param name="entityTypeManager">Gerenciador dos tipos de entidades.</param>
 /// <param name="validationManager">Instancia do gerenciador de validações.</param>
 /// <param name="propertyChangeNotify">Método que receberá notificação de evento</param>
 /// <param name="culture"></param>
 public InstanceState(IEntity entity, IEntityTypeManager entityTypeManager, IValidationManager validationManager, System.ComponentModel.PropertyChangedEventHandler propertyChangeNotify, System.Globalization.CultureInfo culture)
 {
     entity.Require("entity").NotNull();
     validationManager.Require("validationManager").NotNull();
     propertyChangeNotify.Require("propertyChangeNotify").NotNull();
     _specializedList      = new Dictionary <string, Colosoft.Reflection.TypeName>();
     _entityTypeManager    = entityTypeManager;
     _validationManager    = validationManager;
     _entity               = entity;
     _propertyChangeNotify = propertyChangeNotify;
     _propertyAttributes   = new Dictionary <string, IStatebleItem>();
     LoadTypeSettings(culture);
     _entity.PropertyChanged += EntityPropertyChanged;
 }
        public MessagingViewModel()
        {
            _changePageCommand = new EasySocial.FrameWork.Commands.BaseCommand(new Action<object>(changePage));
            _calls = new PlgMessaging.Views.CallsView();
            _chats = new UserControl();
            _contacts = new Views.ContactsView();
            _history = new UserControl();
            _accounts = new Views.UserAccountsView();

            PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(MessagingViewModel_PropertyChanged);

            ChatsBackground = _inactive;
            HistoryBackground = _inactive;
            CallsBackground = _inactive;
            ContactsBackground = _active;
            changePage("Contacts");
        }
        public MainWindowViewModel()
        {
            BaseIntelligence = new FrameWork.Intelligence.CoreIntelligence(this);
            BaseIntelligence.CoreIntelligence.UserIntelligence.UserLoggedIn += new FrameWork.Intelligence.Accounting.UserIntelligence.UserLoggedInEventHandler(UserIntelligence_UserLoggedIn);
            LoginViewViewModel = new LoginViewModel();
            LoginViewViewModel.BaseIntelligence = BaseIntelligence;
            initPages();

            _closingCommand = new EasySocial.FrameWork.Commands.BaseCommand(new Action<object>(updateIntelligence));
            _closeCommand = new EasySocial.FrameWork.Commands.BaseCommand(new Action<object>(closeApplication));
            _showConfigCommand = new EasySocial.FrameWork.Commands.BaseCommand(new Action<object>(showConfig));
            BaseIntelligence.CoreIntelligence.ThreadingIntelligence.StartThread(updateTime);
            _loginState = new Views.LoginView();
            _loginState.DataContext = LoginViewViewModel;
            LoginViewViewModel.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(LoginViewViewModel_PropertyChanged);
            _contextMenuItems = new AsyncObservableCollection<EasySocial.FrameWork.Controls.ContextMenuItem>();
            PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(MainWindowViewModel_PropertyChanged);
        }
Example #14
0
        public static PropertyPath FigureBinding(ComponentPath path, PropertyChangedEventHandler handler, bool resolveDataContext)
        {
            Type type;
            if (resolveDataContext && path.Component is DataContext)
                type = (path.Component as DataContext).Type;
            else
                type = path.Component.GetType();

            var prop = new PropertyPath(path.Property, type, true);

            if (handler != null)
            {
                if (resolveDataContext && path.Component is DataContext)
                    (path.Component as DataContext).AddDependentProperty(prop, handler);
                else
                    prop.AddHandler(path.Component, handler);
            }

            return prop;
        }
Example #15
0
        //public ReportListViewModel(ReportWizardContext context,  IMessageBoxService messageBoxServiceItem, IModalDialogService modalDialogServiceItem) :
        //    this(context,  messageBoxServiceItem, modalDialogServiceItem)
        //{ }
        public ReportListViewModel(ReportWizardContext context, IMessageBoxService messageBoxServiceItem, IModalDialogService modalDialogServiceItem)
        {
            messageBoxService  = messageBoxServiceItem;
            modalDialogService = modalDialogServiceItem;
            //set the internal reference to the context
            myContext = context;
            //myPublishContext = publishContext;
            //initialize the root report group collection
            rootGroups = new ObservableCollection <ReportGroupFolder>();

            //Set up the Relay commands
            InitializeCommand   = new RelayCommand(cmd => Initialize(cmd));
            ViewReportCommand   = new RelayCommand(cmd => ViewReport(cmd), exe => CanViewReport(exe));
            EditReportCommand   = new RelayCommand(cmd => EditReport(cmd), exe => CanEditReport(exe));
            DeleteReportCommand = new RelayCommand(cmd =>
            {
                var result = this.messageBoxService.Show("Are you sure you want to delete this report?",
                                                         "Please confirm", GenericMessageBoxButton.OkCancel);
                if (result == GenericMessageBoxResult.Ok)
                {
                    DeleteReport(cmd);
                }
            }, exe => CanDeleteReport(exe));
            PublishReportCommand    = new RelayCommand(cmd => PublishReport(cmd), exe => CanPublishReport(exe));
            RenameFolderCommand     = new RelayCommand(cmd => RenameFolder(cmd), exe => CanRenameFolder(exe));
            RenamingCompleteCommand = new RelayCommand(cmd => RenamingComplete(cmd), exe => CanRenamingComplete(exe));
            DeleteFolderCommand     = new RelayCommand(cmd =>
            {
                var result = this.messageBoxService.Show("Are you sure you want to delete this folder?",
                                                         "Please confirm", GenericMessageBoxButton.OkCancel);
                if (result == GenericMessageBoxResult.Ok)
                {
                    DeleteFolder(cmd);
                }
            }, exe => CanDeleteFolder(exe));
            ChangeFolderPermissionsCommand = new RelayCommand(cmd => ChangeFolderPermissions(cmd), exe => CanChangeFolderPermissions(exe));
            NewFolderCommand = new RelayCommand(cmd => NewFolder(cmd), exe => CanAddChildFolder(exe));

            //Listener required for property changed
            PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(SelectReportGroupViewModel_PropertyChanged);
        }
        public BTDeviceInfoCellView() : base(UITableViewCellStyle.Default, typeof(BTDeviceInfoCellView).Name )
        {
            this.Frame = new RectangleF(Frame.Location, new SizeF(210, 80));            

            prop_changed_handler = new System.ComponentModel.PropertyChangedEventHandler(device_info_PropertyChanged);

            RectangleF frame = new RectangleF(10, 5, 140, 24);
            bt_device_name_label = new UILabel(frame) { TextAlignment = UITextAlignment.Left, AdjustsFontSizeToFitWidth = true };
            ContentView.Add(bt_device_name_label);

            frame.X += frame.Width + 10;
            bt_address_label = new UILabel(frame) { TextAlignment = UITextAlignment.Left, AdjustsFontSizeToFitWidth = true };
            ContentView.Add(bt_address_label);

            frame = new RectangleF(10, 5 + 24, 140, 15);
            bt_state_label = new UILabel(frame) { TextAlignment = UITextAlignment.Left, AdjustsFontSizeToFitWidth = true };
            ContentView.Add(bt_state_label);

            frame = new RectangleF(10, 5 + 24 + 15, 140, 15);
            bt_class_of_device_label = new UILabel(frame) { TextAlignment = UITextAlignment.Left, AdjustsFontSizeToFitWidth = true };
            ContentView.Add(bt_class_of_device_label);

            frame.X += frame.Width + 10;
            bt_clock_offset_label = new UILabel(frame) { TextAlignment = UITextAlignment.Left, AdjustsFontSizeToFitWidth = true };
            ContentView.Add(bt_clock_offset_label);

            frame = new RectangleF(10, 5 + 24 + 15 + 15, 140, 15);
            bt_page_scan_repetition_mode_label = new UILabel(frame) { TextAlignment = UITextAlignment.Left, AdjustsFontSizeToFitWidth = true };
            ContentView.Add(bt_page_scan_repetition_mode_label);

            frame.X += frame.Width + 10;
            bt_rssi_label = new UILabel(frame) { TextAlignment = UITextAlignment.Left, AdjustsFontSizeToFitWidth = true };
            ContentView.Add(bt_rssi_label);

            initView();
        }
Example #17
0
 partial void OnCreated()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(AnimationProduct_PropertyChanged);
 }
Example #18
0
 public Pallet()
     : base()
 {
     #if DEBUG
     isDebugMode = true;
     #endif
     ValueOfObjectPropertyChanged += new ValueOfObjectPropertyChangedDelegate(Pallet_ValueOfObjectPropertyChanged);
     TableRowDeleted += new TableRowDeletedDelegate(Pallet_TableRowDeleted);
     weightGetting.OnWeightAccepted += new WeightAcceptedDelegate(weightGetting_OnWeightAccepted);
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(Pallet_PropertyChanged);
     AfterWriting += new AfterWritingDelegate(Pallet_AfterWriting);
 }
Example #19
0
 public PathMarkerSymbol()
 {
     loadControlTemplate();
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(PathMarkerSymbol_PropertyChanged);
 }
 public AbstractEditorItem(IEditorItem parent)
     : base(parent)
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(AbstractEditorItem_PropertyChanged);
     parentChanged();
 }
Example #21
0
            public void AddHandler(object root, PropertyChangedEventHandler handler)
            {
                for (var i = 0; i < _pPath.Length; i++)
                {
                    var part = GetIdxProperty(i, root);
                    if (part == null) return;

                    TrySubscribe(root, i);

                    if (root != null)
                        root = part.GetValue(root, null);
                    else
                        break;
                }

                _handler = handler;
            }
Example #22
0
 public void ClearHandlers()
 {
     for (var i = 0; i < _notifies.Length; i++)
     {
         var n = _notifies[i];
         _notifies[i] = null;
         if (n == null) continue;
         n.Object.PropertyChanged -= n.Handler;
     }
     _handler = null;
 }
 public PathMarkerSymbol()
 {
     loadControlTemplate();
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(PathMarkerSymbol_PropertyChanged);
 }
Example #24
0
 public void AddPropetryChangedHandlerToDataSet(System.ComponentModel.PropertyChangedEventHandler handler)
 {
     datasetHandler = handler;
     if (dataSet != null)
         dataSet.PropertyChanged += datasetHandler;
 }
Example #25
0
 public BudgetEquationWizardElementViewModel()
 {
     BackPageName     = typeof(BudgetEquationWizardStartViewModel).Name;
     NextPageName     = typeof(BudgetEquationWizardElementViewModel).Name;
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(BudgetEquationWizardElementViewModel_PropertyChanged);
 }
Example #26
0
 partial void OnCreated()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(RetailerType_PropertyChanged);    
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     PositionWindows();
     lblCaller.Text = call.other_party_name + " - " + call.other_party_number;
     Title = "FSClient Incoming Call " + lblCaller.Text;
     prop_changed = new System.ComponentModel.PropertyChangedEventHandler(call_PropertyChanged);
     call.PropertyChanged += prop_changed;
     btnSendVoicemail.Visibility = call.CanSendToVoicemail() ? Visibility.Visible : Visibility.Hidden;
     btnTransfer.ContextMenu = Broker.get_instance().XFERContextMenu();
     btnTransfer.DataContext = call;
     if (Broker.get_instance().IncomingKeyboardFocus)
         DelayedFunction.DelayedCall("BubbleTop", MakeUsTop, 500);
     Show();
     Topmost = true;
 }
 public NewsFeedsViewModel()
 {
     OpenEntryCommand = new EasySocial.FrameWork.Commands.BaseCommand(new Action<object>(openLinkFunction));
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(NewsFeedsViewModel_PropertyChanged);
 }