Exemplo n.º 1
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="tp">Objeto TwitpicAPI</param>
 public frmMsg(TwitShot.API.TwitPic tp)
 {
     this.Icon = global::TwitShot.Properties.Resources.twitshot;
     fnc = new TwitShot.API.App();
     InitializeComponent();
     this.pbImagen.Dock = DockStyle.Fill;
     tsslLink.Text = Properties.Settings.Default.TwitPicPhotos + tp.Username;
     TP = tp;
     CapturaPantalla();
     this.ContadorCaracteres();
     this.DialogResult = DialogResult.No;
     this.Precos_Sending = true;
     foreach (String item in WebCamObj.CaptureDevices)
     {
         tsddbWebCam.DropDownItems.Add(item, tsddbWebCam.Image, ChangeWebCamSource);
     }
     if (tsddbWebCam.DropDownItems.Count == 0) {
         tsddbWebCam.Enabled = false;
     }
     foreach (string item in Simbolos)
     {
         tssbSimbolos.DropDownItems.Add(item, null, ClickSimbolo);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Constructor
 /// </summary>
 /// <param name="tp">Objeto TwitpicAPI</param>
 /// <param name="captura">Imagen que se va a enviar</param>
 public frmMsg(TwitShot.API.TwitPic tp, Image captura)
 {
     this.Icon = global::TwitShot.Properties.Resources.twitshot;
     fnc = new TwitShot.API.App();
     InitializeComponent();
     this.pbImagen.Dock = DockStyle.Fill;
     tsslLink.Text = Properties.Settings.Default.TwitPicPhotos + tp.Username;
     TP = tp;
     this.Precos_Sending = true;
     pbImagen.Image = captura;
 }