예제 #1
0
 public override string ToString()
 {
     if (ASSSubtitle.showAbstract)
     {
         return($"{Name}: {Fontname},{Fontsize}{(Bold ? "B" : "")}{(Italic ? "I" : "")}{(Underline ? "U" : "")}{(StrikeOut ? "S" : "")}");
     }
     else
     {
         base.ToString();
     }
 }
예제 #2
0
파일: FormK.cs 프로젝트: ljhbeer/backup
 private void RefreshItemListDtsave(string id)
 {
     DataRow[] drv = itemsdt.Select("id in (" + id + ") ");
     if (drv.Length == 1)
     {
         webBrowser1.DocumentText = t.Replace("[font-size]", Fontsize.ToString()).Replace("<--!item-->", dc.QueryItem(drv[0]));
     }
 }
예제 #3
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Id != 0L)
        {
            hash ^= Id.GetHashCode();
        }
        if (Progress != 0)
        {
            hash ^= Progress.GetHashCode();
        }
        if (Mode != 0)
        {
            hash ^= Mode.GetHashCode();
        }
        if (Fontsize != 0)
        {
            hash ^= Fontsize.GetHashCode();
        }
        if (Color != 0)
        {
            hash ^= Color.GetHashCode();
        }
        if (MidHash.Length != 0)
        {
            hash ^= MidHash.GetHashCode();
        }
        if (Content.Length != 0)
        {
            hash ^= Content.GetHashCode();
        }
        if (Ctime != 0L)
        {
            hash ^= Ctime.GetHashCode();
        }
        if (Weight != 0)
        {
            hash ^= Weight.GetHashCode();
        }
        if (Action.Length != 0)
        {
            hash ^= Action.GetHashCode();
        }
        if (Pool != 0)
        {
            hash ^= Pool.GetHashCode();
        }
        if (IdStr.Length != 0)
        {
            hash ^= IdStr.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
예제 #4
0
파일: FormPPT.cs 프로젝트: ljhbeer/backup
 private void ShowItem()
 {
     try
     {
         string html = "<h1>暂时未找到该题</h1>";
         if (itemsdt.Rows.Count > 0 && activequestionid >= 0 && activequestionid < itemsdt.Rows.Count)
         {
             html = dc.QueryItem(itemsdt.Rows[activequestionid]);
         }
         html = t.Replace("[font-size]", Fontsize.ToString()).Replace("<--!item-->", html);
         webBrowser1.DocumentText = html;
     }
     catch (System.Data.OleDb.OleDbException ole)
     {
         webBrowser1.DocumentText = "<h1>找到该题出现故障</h1><p>" + ole.Message + "</p>";;
     }
 }