コード例 #1
0
 private Target(int id, string name, string desc, TargetType targetType, int year, int periodValue, DateTime?lastDate, DateTime?prolongationDate, Important important, User owner, bool done)
 {
     Id          = id;
     Name        = name;
     Description = desc;
     TargetType  = targetType;
     Year        = year;
     PeriodValue = periodValue;
     if (lastDate == null)
     {
         LastDate = PeriodFinish;
     }
     else
     {
         LastDate = lastDate;
     }
     ProlongationDate = prolongationDate;
     Important        = important;
     if (owner == null)
     {
         Owner       = null;
         ForAllUsers = true;
     }
     else
     {
         Owner       = owner;
         ForAllUsers = false;
     }
     Done  = done;
     Tasks = new ObservableCollection <TargetTask>();
 }
コード例 #2
0
        private void Record_Load(object sender, EventArgs e)
        {
            if (PropertiesS.IndexOf("UNREAD") == -1)
            {
                BackColor    = Color.White;
                panel1.Width = 0;
            }
            if (PropertiesS.IndexOf("STARRED") == -1)
            {
                Starred.Hide();
            }
            if (PropertiesS.IndexOf("IMPORTANT") == -1)
            {
                Important.Hide();
            }
            if (FileName == null || FileName == string.Empty)
            {
                Attachment.Hide();
            }

            SenderName.Text  = UserName;
            SenderAvt.Image  = Avatar;
            Subject.Text     = MsgSubject;
            TimeRecived.Text = RecivedTime;
        }
コード例 #3
0
 public override int GetHashCode()
 {
     return(PrimaryFolder.GetHashCode() ^ Unread.GetHashCode() ^ Attachments.GetHashCode() ^
            PeriodFrom.GetHashCode() ^ PeriodTo.GetHashCode() ^ Important.GetHashCode() ^
            FromAddress.GetHashCode() ^ MailboxId.GetHashCode() ^ CustomLabels.GetHashCode() ^
            Sort.GetHashCode() ^ SortOrder.GetHashCode() ^ SearchText.GetHashCode() ^
            Page.GetValueOrDefault() ^ PageSize.GetHashCode() ^ SetLabel.GetHashCode() ^
            WithCalendar.GetHashCode() ^ UserFolderId.GetHashCode() ^ FromDate.GetHashCode() ^
            FromMessage.GetHashCode() ^ PrevFlag.GetHashCode());
 }