예제 #1
0
 private void btnEnviar_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtMsg.Text))
     {
         bunifuSnackbar.Show(this, "Digite qualquer coisa", Bunifu.UI.WinForms.BunifuSnackbar.MessageTypes.Information);
     }
     else
     {
         if (btnStart.Text == "Conectar")
         {
             bunifuSnackbar.Show(this, "Conecte Primeiro ao seu WhatsApp", Bunifu.UI.WinForms.BunifuSnackbar.MessageTypes.Information);
         }
         else
         {
             AddToList();
             /*Progress loading start code*/
             pnProcess.Enabled = true;
             pnProcess.Visible = true;
             PicBlur.Enabled   = true;
             PicBlur.Visible   = true;
             PBB.Animated      = true;
             PBB.Visible       = true;
             PicBlur.BringToFront();
             pnProcess.BringToFront();
             pnHeader.BringToFront();
             /*Progress loading end code*/
             BGW.RunWorkerAsync();/* TODO ERROR: Progress linear */
         }
     }
 }
예제 #2
0
 private void BGW_DoWork(object sender, DoWorkEventArgs e)
 {
     BroadCast();
     /*Progress loading start code*/
     pnProcess.Enabled = false;
     pnProcess.Visible = false;
     PicBlur.Enabled   = false;
     PicBlur.Visible   = false;
     PBB.Animated      = false;
     PBB.Visible       = false;
     PicBlur.SendToBack();
     pnProcess.SendToBack();
 }
예제 #3
0
        private void Op_lista_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            //throw new NotImplementedException();
            switch (e.ClickedItem.Name.ToString())
            {
            case "send":

                PicBlur.SendToBack();

                bunifuSnackbar.Show(this, "Conecte Primeiro ao seu WhatsApp", Bunifu.UI.WinForms.BunifuSnackbar.MessageTypes.Information);

                break;

            case "del":

                bunifuSnackbar.Show(this, "Apagado", Bunifu.UI.WinForms.BunifuSnackbar.MessageTypes.Information);

                break;
            }
        }