public RegisterPageViewModel()
 {
     UserData = UserDataModel.Instance;
     PropertyChangedHandler = new System.ComponentModel.PropertyChangedEventHandler(UserData_PropertyChanged);
     UserDataModel.Instance.PropertyChanged += PropertyChangedHandler;
     Login = new RelayCommand((param) => LoginBody(param as string[]));
 }
Пример #2
0
        public ObjectListView()
        {
            OnObjectSaveHandler = new System.EventHandler(this.OnObjectSave);
            OnObjectDeleteHandler = new System.EventHandler(this.OnObjectDelete);
            OnObjectValueChangedHandler = new System.ComponentModel.PropertyChangedEventHandler(this.OnObjectValueChanged);
            OnContextColumnMenuHandler = new EventHandler(this.OnContextMenuColumnVisibility);

            //			this.SmallImageList = SharedResources.SmallIconImageList;

            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitForm call
            this.View = System.Windows.Forms.View.Details;
            this.FullRowSelect = true;
            this.AllowColumnReorder = true;

            // create our handler for when the parent form is closing
            OnParentFormClosing = new CancelEventHandler(parentForm_Closing);
        }
        public MenuViewModel()
        {
            CloseCommand = new RelayCommand((param) => Application.Current.Shutdown());
            ShowConnectionDialog = new RelayCommand((param) =>
            {
                ShowConnectionModel_IFN();
            });
            Logout = new RelayCommand((param) => UserDataModel.Instance.Logout());
            PropertyChangedHandler = new System.ComponentModel.PropertyChangedEventHandler(UserData_PropertyChanged);
            OpenAdmin = new RelayCommand((param) =>
                {
                    new AdminWindow().Show();
                });
            UserDataModel.Instance.PropertyChanged += PropertyChangedHandler;

            search = SearchDataModel.Instance.Search;
            IsAdmin = UserDataModel.Instance.IsConnected;
            IsAdmin = false;

            ErrorModel = new ErrorViewModel();
        }
Пример #4
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(SmphMandatoryFieldsLookup_PropertyChanged);
 }
Пример #5
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(ThaiRegionLookup_PropertyChanged);
 }
Пример #6
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(SettlementTypeLookup_PropertyChanged);
 }
Пример #7
0
 public void _SetupMainHandler()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ChildObject_PropertyChanged);
 }
Пример #8
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(CollectionMethodLookup_PropertyChanged);
 }
Пример #9
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(ListPanelObject_PropertyChanged);
 }
 public virtual void OnPropertyChanged(string propertyName) {
     System.ComponentModel.PropertyChangedEventHandler handler = this.PropertyChanged;
     if ((handler != null)) {
         handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
     }
 }
 public ExportSelectedWorkoutsAction()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(WorkoutExportAction_PropertyChanged);
 }
Пример #12
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(SmphBaseReferenceTranslationLookup_PropertyChanged);
 }
Пример #13
0
 public void _SetupMainHandler()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(DepartmentLookup_PropertyChanged);
 }
Пример #14
0
 public void _SetupMainHandler()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(SmphOrganizationTranslationLookup_PropertyChanged);
 }
Пример #15
0
 public void _SetupMainHandler()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(SmphGisBaseReferenceTranslationLookup_PropertyChanged);
 }
Пример #16
0
 /// <summary>
 /// Invokes event with given parameter.
 /// </summary>
 public static void Invoke(System.ComponentModel.PropertyChangedEventHandler eventHandler, object sender, string propertyName)
 {
     Invoke(eventHandler, sender, new PropertyChangedEventArgs(propertyName));
 }
Пример #17
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(HumanAggregateCaseDetailed_PropertyChanged);
 }
Пример #18
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(RuleAction_PropertyChanged);
 }
Пример #19
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(Lookup1Table_PropertyChanged);
 }
Пример #20
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(LabDerivativeTypesLookup_PropertyChanged);
 }
Пример #21
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(VetAggregateActionProphylacticDetailed_PropertyChanged);
 }
Пример #22
0
 public void _SetupMainHandler()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(VetAggregateCaseDetailed_PropertyChanged);
 }
Пример #23
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(DiagnosisAgeGroupLookup_PropertyChanged);
 }
Пример #24
0
 public void _SetupMainHandler()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(Lookup2ParamTable_PropertyChanged);
 }
Пример #25
0
 public void _SetupMainHandler()
 {
     PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(SampleTypeForDiagnosisLookup_PropertyChanged);
 }
Пример #26
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(DataArchiveSettings_PropertyChanged);
 }
Пример #27
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(PostalCodeLookup_PropertyChanged);
 }
Пример #28
0
 public void _RevokeMainHandler()
 {
     PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(SmphAnimalAgeLookup_PropertyChanged);
 }