示例#1
0
        public void handleConfirm()
        {
            if (Rating.hasErrors() || Text.hasErrors())
            {
                return;
            }

            var updater = new RatingUpdater(Rating.getConvertedField(), Text.Value);
            var args    = new UpdateEventArgs <RatingModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }
        public void handleConfirm()
        {
            if (RatingError != String.Empty || TextError != String.Empty)
            {
                return;
            }

            var updater = new RatingUpdater(Double.Parse(Rating), Text);
            var args    = new UpdateEventArgs <RatingModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }
示例#3
0
        public void handleConfirm()
        {
            if (Name.hasErrors() || Type.hasErrors())
            {
                return;
            }

            var updater = TagUpdater.createNameTypeUpdater(Name.Value, Type.Value);
            var args    = new UpdateEventArgs <TagModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }
示例#4
0
        public void handleConfirm()
        {
            if (TypeError != String.Empty)
            {
                return;
            }

            var updater = new UserUpdater(Int32.Parse(Type));
            var args    = new UpdateEventArgs <UserModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }
示例#5
0
        public void handleConfirm()
        {
            if (NameError != String.Empty || TypeError != String.Empty)
            {
                return;
            }

            var updater = TagUpdater.createNameTypeUpdater(Name, Type);
            var args    = new UpdateEventArgs <TagModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }
示例#6
0
        public void handleConfirm()
        {
            if (Type.hasErrors())
            {
                return;
            }

            var updater = new UserUpdater(Int32.Parse(Type.Value));
            var args    = new UpdateEventArgs <UserModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }
示例#7
0
        public void handleConfirm()
        {
            if (Artist.hasErrors() || Album.hasErrors())
            {
                return;
            }

            string new_tags = String.Join(",", (from tag in Tags.Value select tag.Name));
            //string new_types = String.Join(",", (from tag in Tags select tag.Type));

            var updater = SongUpdater.createNoTabUpdater(null, Artist.Value, Album.Value, new_tags);
            var args    = new UpdateEventArgs <SongModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }
示例#8
0
        public void handleConfirm()
        {
            if (ArtistError != String.Empty || AlbumError != String.Empty)
            {
                return;
            }

            string new_tags = String.Join(",", (from tag in Tags select tag.Name));
            //string new_types = String.Join(",", (from tag in Tags select tag.Type));

            var updater = SongUpdater.createNoTabUpdater(null, artist, album, new_tags);
            var args    = new UpdateEventArgs <SongModel>(Base, updater);

            ConfirmEdit?.Invoke(this, args);
        }