private void editdatebutton_Click(object sender, RoutedEventArgs e)
        {
            EditDate ed = new EditDate(bolayer, currentTaskid);

            ed.ShowDialog();

            bolayer.load_task_form_server();
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + TitleUnicode.GetHashCode();
         hash = hash * 23 + TitleRoman.GetHashCode();
         hash = hash * 23 + ArtistUnicode.GetHashCode();
         hash = hash * 23 + ArtistRoman.GetHashCode();
         hash = hash * 23 + Creator.GetHashCode();
         hash = hash * 23 + DiffName.GetHashCode();
         hash = hash * 23 + Mp3Name.GetHashCode();
         hash = hash * 23 + Md5.GetHashCode();
         hash = hash * 23 + OsuFileName.GetHashCode();
         hash = hash * 23 + Tags.GetHashCode();
         hash = hash * 23 + Somestuff.GetHashCode();
         hash = hash * 23 + _state.GetHashCode();
         hash = hash * 23 + Circles.GetHashCode();
         hash = hash * 23 + Sliders.GetHashCode();
         hash = hash * 23 + Spinners.GetHashCode();
         hash = hash * 23 + EditDate.GetHashCode();
         hash = hash * 23 + ApproachRate.GetHashCode();
         hash = hash * 23 + CircleSize.GetHashCode();
         hash = hash * 23 + HpDrainRate.GetHashCode();
         hash = hash * 23 + OverallDifficulty.GetHashCode();
         hash = hash * 23 + SliderVelocity.GetHashCode();
         hash = hash * 23 + DrainingTime.GetHashCode();
         hash = hash * 23 + TotalTime.GetHashCode();
         hash = hash * 23 + PreviewTime.GetHashCode();
         hash = hash * 23 + MapId.GetHashCode();
         hash = hash * 23 + MapSetId.GetHashCode();
         hash = hash * 23 + ThreadId.GetHashCode();
         hash = hash * 23 + OsuGrade.GetHashCode();
         hash = hash * 23 + TaikoGrade.GetHashCode();
         hash = hash * 23 + CatchGrade.GetHashCode();
         hash = hash * 23 + ManiaGrade.GetHashCode();
         hash = hash * 23 + Offset.GetHashCode();
         hash = hash * 23 + StackLeniency.GetHashCode();
         hash = hash * 23 + PlayMode.GetHashCode();
         hash = hash * 23 + Source.GetHashCode();
         hash = hash * 23 + AudioOffset.GetHashCode();
         hash = hash * 23 + LetterBox.GetHashCode();
         hash = hash * 23 + Played.GetHashCode();
         hash = hash * 23 + LastPlayed.GetHashCode();
         hash = hash * 23 + IsOsz2.GetHashCode();
         hash = hash * 23 + Dir.GetHashCode();
         //hash = hash * 23 + LastSync.GetHashCode(); //This value is updated by osu even if no changes were made to the actual data
         hash = hash * 23 + DisableHitsounds.GetHashCode();
         hash = hash * 23 + DisableSkin.GetHashCode();
         hash = hash * 23 + DisableSb.GetHashCode();
         hash = hash * 23 + BgDim.GetHashCode();
         hash = hash * 23 + ModPpStars.GetHashCode();
         hash = hash * 23 + MaxBpm.GetHashCode();
         hash = hash * 23 + MinBpm.GetHashCode();
         hash = hash * 23 + MainBpm.GetHashCode();
         return(hash);
     }
 }
示例#3
0
        private string ValidateEditDate()
        {
            if (EditDate.ToString("dd-MM-yyyy") == "01-01-0001")
            {
                return("Дата редактирования не указана");
            }

            return(null);
        }
示例#4
0
        private void EditDateExecute()
        {
            try
            {
                EditDate e = new EditDate(admin);
                e.ShowDialog();

                if ((e.DataContext as EditDateViewModel).isUpdated == true)
                {
                    adminList = Service.Service.GetVwAdministratorList();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
        public BsonDocument ToBsonDocument()
        {
            BsonArray lib = new BsonArray(Library);

            BsonDocument document = new BsonDocument()
            {
                { "_id", _id },
                { "Name", Name },
                { "Library", lib },
                { "ClassName", ClassName },
                { "Duration", Duration },
                { "Delta", Delta },
                { "Interpolation", Interpolation },
                { "Tags", Tags },
                { "Notes", Notes },
                { "CodeSample", CodeSample },
                { "CreationDate", CreationDate.ToString("o") },
                { "EditDate", EditDate.ToString("o") },
                { "Author", Author },
                { "Editor", Editor }
            };

            return(document);
        }
示例#6
0
        private void EventMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            e.Handled = true;
            CharacterGroupEvent ev      = ((ListViewItem)sender).Content as CharacterGroupEvent;
            CharacterGroupEvent edEvent = new CharacterGroupEvent {
                ID = ev.ID, GroupEventID = ev.GroupEventID, Description = ev.Description.Clone() as String, CharaList = ev.CharaList.Clone() as String
            };

            EditDate ed = new EditDate(m_wd, edEvent);

            ed.ShowDialog();

            if (((EditDateDatas)ed.DataContext).Valid)
            {
                TextBlock tb = FindName("EventDesc") as TextBlock;

                tb.Inlines.Clear();

                ev.Description = edEvent.Description;

                m_wd.CharacterDatas.CurrentDate = null;
                m_wd.CharacterDatas.CurrentDate = ev;
            }
        }
 public EditDateViewModel(EditDate open, vwAdministrator user)
 {
     editDate          = open;
     editAdministrator = Service.Service.GetAdminById(user.administratorId);
 }
示例#8
0
        public override int GetHashCode()
        {
            int hashCode = -103033237;

            hashCode = hashCode * -1521134295 + MessageId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(From);

            hashCode = hashCode * -1521134295 + EqualityComparer <Chat?> .Default.GetHashCode(SenderChat);

            hashCode = hashCode * -1521134295 + Date.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Chat> .Default.GetHashCode(Chat);

            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(ForwardFrom);

            hashCode = hashCode * -1521134295 + EqualityComparer <Chat?> .Default.GetHashCode(ForwardFromChat);

            hashCode = hashCode * -1521134295 + ForwardFromMessageId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(ForwardSignature);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(ForwardSenderName);

            hashCode = hashCode * -1521134295 + ForwardDate.GetHashCode();
            hashCode = hashCode * -1521134295 + IsAutomaticForward.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Message?> .Default.GetHashCode(ReplyToMessage);

            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(ViaBot);

            hashCode = hashCode * -1521134295 + EditDate.GetHashCode();
            hashCode = hashCode * -1521134295 + HasProtectedContent.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(MediaGroupId);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(AuthorSignature);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(Text);

            hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <MessageEntity>?> .Default.GetHashCode(Entities);

            hashCode = hashCode * -1521134295 + EqualityComparer <Animation?> .Default.GetHashCode(Animation);

            hashCode = hashCode * -1521134295 + EqualityComparer <Audio?> .Default.GetHashCode(Audio);

            hashCode = hashCode * -1521134295 + EqualityComparer <Document?> .Default.GetHashCode(Document);

            hashCode = hashCode * -1521134295 + EqualityComparer <PhotoSize[]?> .Default.GetHashCode(Photo);

            hashCode = hashCode * -1521134295 + EqualityComparer <Sticker?> .Default.GetHashCode(Sticker);

            hashCode = hashCode * -1521134295 + EqualityComparer <Video?> .Default.GetHashCode(Video);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoNote?> .Default.GetHashCode(VideoNote);

            hashCode = hashCode * -1521134295 + EqualityComparer <Voice?> .Default.GetHashCode(Voice);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(Caption);

            hashCode = hashCode * -1521134295 + EqualityComparer <IEnumerable <MessageEntity>?> .Default.GetHashCode(CaptionEntities);

            hashCode = hashCode * -1521134295 + EqualityComparer <Contact?> .Default.GetHashCode(Contact);

            hashCode = hashCode * -1521134295 + EqualityComparer <Dice?> .Default.GetHashCode(Dice);

            hashCode = hashCode * -1521134295 + EqualityComparer <Game?> .Default.GetHashCode(Game);

            hashCode = hashCode * -1521134295 + EqualityComparer <Poll?> .Default.GetHashCode(Poll);

            hashCode = hashCode * -1521134295 + EqualityComparer <Venue?> .Default.GetHashCode(Venue);

            hashCode = hashCode * -1521134295 + EqualityComparer <Location?> .Default.GetHashCode(Location);

            hashCode = hashCode * -1521134295 + EqualityComparer <User[]?> .Default.GetHashCode(NewChatMembers);

            hashCode = hashCode * -1521134295 + EqualityComparer <User?> .Default.GetHashCode(LeftChatMember);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(NewChatTitle);

            hashCode = hashCode * -1521134295 + EqualityComparer <PhotoSize[]?> .Default.GetHashCode(NewChatPhoto);

            hashCode = hashCode * -1521134295 + DeleteChatPhoto.GetHashCode();
            hashCode = hashCode * -1521134295 + GroupChatCreated.GetHashCode();
            hashCode = hashCode * -1521134295 + SupergroupChatCreated.GetHashCode();
            hashCode = hashCode * -1521134295 + ChannelChatCreated.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <MessageAutoDeleteTimerChanged?> .Default.GetHashCode(MessageAutoDeleteTimerChanged);

            hashCode = hashCode * -1521134295 + MigrateToChatId.GetHashCode();
            hashCode = hashCode * -1521134295 + MigrateFromChatId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Message?> .Default.GetHashCode(PinnedMessage);

            hashCode = hashCode * -1521134295 + EqualityComparer <Invoice?> .Default.GetHashCode(Invoice);

            hashCode = hashCode * -1521134295 + EqualityComparer <SuccessfulPayment?> .Default.GetHashCode(SuccessfulPayment);

            hashCode = hashCode * -1521134295 + EqualityComparer <string?> .Default.GetHashCode(ConnectedWebsite);

            hashCode = hashCode * -1521134295 + EqualityComparer <PassportData?> .Default.GetHashCode(PassportData);

            hashCode = hashCode * -1521134295 + EqualityComparer <ProximityAlertTriggered?> .Default.GetHashCode(ProximityAlertTriggered);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatScheduled?> .Default.GetHashCode(VoiceChatScheduled);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatStarted?> .Default.GetHashCode(VoiceChatStarted);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatEnded?> .Default.GetHashCode(VoiceChatEnded);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatParticipantsInvited?> .Default.GetHashCode(VoiceChatParticipantsInvited);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatScheduled?> .Default.GetHashCode(VideoChatScheduled);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatStarted?> .Default.GetHashCode(VideoChatStarted);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatEnded?> .Default.GetHashCode(VideoChatEnded);

            hashCode = hashCode * -1521134295 + EqualityComparer <VideoChatParticipantsInvited?> .Default.GetHashCode(VideoChatParticipantsInvited);

            hashCode = hashCode * -1521134295 + EqualityComparer <WebAppData?> .Default.GetHashCode(WebAppData);

            hashCode = hashCode * -1521134295 + EqualityComparer <InlineKeyboardMarkup?> .Default.GetHashCode(ReplyMarkup);

            return(hashCode);
        }