SendAndShowMessage() private static méthode

private static SendAndShowMessage ( string message ) : void
message string
Résultat void
Exemple #1
0
 public void Start()
 {
     //TimerCallback cb = delegate (object o)
     //{
     //    running = false;
     //    MainWindow.instance.botChatConnection.SendChatMessage(string.Format("{0} giveaway ended! Winner will be drawn by the streamer!", giveawayName));
     //};
     //giveawayTimer = new Timer(cb, new ManualResetEvent(true), new TimeSpan(0), giveawayTime);
     running = true;
     MainWindow.instance.botChatConnection.ChatMessageReceived += BotChatConnection_ChatMessageReceived;
     BotCommands.SendAndShowMessage(string.Format("{0} giveaway has started! Type {1} in chat to enter! Following is {2} Duration: {3}h {4}m {5}s", giveawayName, keyword, (needsFollow ? "needed." : "not needed."), giveawayTime.Hours, giveawayTime.Minutes, giveawayTime.Seconds));
 }
Exemple #2
0
 public void Stop()
 {
     giveawayTimer.Dispose();
     running = false;
     BotCommands.SendAndShowMessage(string.Format("{0} giveaway ended! Winner will be drawn by the streamer!", giveawayName));
 }
 public void DefaultGiveawayWinnerChosen(object sender, WinnerChosenEventArgs e)
 {
     BotCommands.SendAndShowMessage(string.Format("{0} has won the {1} giveaway!", e.Winner.UserName, e.Giveaway.GiveawayName));
     btnDrawWinner.IsEnabled = true;
     WindowViewerChat vc = new WindowViewerChat(this, e.Winner);
 }
 public void DefaultGiveawayViewerEntered(object sender, ViewerEnteredEventArgs e)
 {
     BotCommands.SendAndShowMessage(string.Format("{0} has entered the {1} giveaway!", e.Viewer, e.Giveaway.GiveawayName));
 }