private void button2_Click(object sender, EventArgs e) { if (textBox1.Text != string.Empty) { Hipchat.SendPM(textBox1.Text, comboBox2.Text, "token"); } textBox1.Text = string.Empty; }
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); } }
private static void SendMessage(string message) { if (Properties.Settings.Default.Plugin.ToUpper() == "HIPCHAT") { Hipchat.SendToRoom(message, Properties.Settings.Default.RecruitmentRoomName, Properties.Settings.Default.HipchatToken); } else if (Properties.Settings.Default.Plugin.ToUpper() == "SLACK") { Slack.SendToRoom(message, Properties.Settings.Default.RecruitmentRoomName, Properties.Settings.Default.SlackWebhook); } }
private void Form1_Load(object sender, EventArgs e) { //string thing = "bzuowPX0H4xq75y1yBGibMLB0VJkIpqUhMYIIEhZhMFpVbP5tK7F8805qNSlWhZW"; //MessageBox.Show(thing.Length.ToString()); List <string> AllRooms = Hipchat.GetAllRooms("token"); List <string> AllUsers = Hipchat.GetAllUsers("token"); comboBox1.DataSource = AllRooms; comboBox2.DataSource = AllUsers; CheckKills(); }