Ejemplo n.º 1
0
 public frmSendTwits(string tid = null, string uname = null, string repostedtext = null)
     : base(false, true)
 {
     InitializeComponent();
     if (!string.IsNullOrEmpty(tid))
     {
         this._tid = tid;
         this.btnPictures.Visible = false;
         this.btnScreenshot.Visible = false;
         if (string.IsNullOrEmpty(uname))
         {
             this.smod = SendMod.comment;
             this.lbCaption.Text = "评论微博:";
             this.chkadditional.Text = "同时转发到我的微博";
         }
         else
         {
             this.smod = SendMod.repost;
             this.lbCaption.Text = "转发微博:";
             this.chkadditional.Text = "同时评论给 @" + uname;
             if (!string.IsNullOrEmpty(repostedtext))
             {
                 this.tbContent.Text = repostedtext;
                 tbContent.Select(0, 0);
             }
         }
     }
 }
Ejemplo n.º 2
0
 public JPush(SendMod info)
 {
     this.Info = info;
 }