コード例 #1
0
        public void addCustomData( )
        {
            DM.Dialogs.CustomDataDialogue cdd = new DM.Dialogs.CustomDataDialogue();

            if (cdd.ShowDialog( ) == true)
            {
                ACustomDataValue value = cdd.Value;

                Event.addCustomDataValue(value);

                //SaveToDB ( );
                RaisePropertyChanged("CustomData");
            }
        }
コード例 #2
0
        public void editCustomData(object obj)
        {
            if (obj is ACustomDataValue value)
            {
                DM.Dialogs.CustomDataDialogue cdd = new DM.Dialogs.CustomDataDialogue(value);

                if (cdd.ShowDialog( ) == true)
                {
                    //!*!
                    GetFileDetails( ).IO.Update <ACustomDataValue>(value);
                    //SaveToDB ( );
                    RaisePropertyChanged("CustomData");
                }
            }
        }