Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != string.Empty)
     {
         Hipchat.SendPM(textBox1.Text, comboBox2.Text, "token");
     }
     textBox1.Text = string.Empty;
 }
Esempio n. 2
0
 private static void SendPM(string message)
 {
     if (Properties.Settings.Default.Plugin.ToUpper() == "HIPCHAT")
     {
         Hipchat.SendPM(message, "Clyde en Marland", Properties.Settings.Default.HipchatToken);
     }
     else if (Properties.Settings.Default.Plugin.ToUpper() == "SLACK")
     {
         Slack.SendPM(message, "Clyde en Marland", Properties.Settings.Default.SlackWebhook);
     }
 }