Beispiel #1
0
 void buttonSend_Click(Nevron.Nov.Dom.NEventArgs arg)
 {
     if (textBoxSend.Text != String.Empty)
     {
         Core.Bot.I.SendChannelMessage(textBoxSend.Text);
         listBoxChat.Items.Add(new NListBoxItem(Properties.Settings.Default.BotNickname + ": " + textBoxSend.Text)); // Add the message to the Chat Box
         textBoxSend.Text = String.Empty; // Reset the textbox
     }
 }
        /// <summary>
        /// Builds an attribute quality control chart.
        /// </summary>
        /// <param name="AttributeStats">Specific statistics for quality chart</param>
        /// <param name="QualityControlChart">Nevron chart control</param>
        public AttributeChart(IAttributeChartStats AttributeStats, Nevron.Chart.WinForm.NChartControl QualityControlChart)
        {
            nControlChart = QualityControlChart;

            BuildChart(AttributeStats);
        }
Beispiel #3
0
 void ribbonButtonConfiguration_Click(Nevron.Nov.Dom.NEventArgs arg)
 {
     new SetupForm().Show(); // Show the settings form
     this.Close(); // And close this one
 }
Beispiel #4
0
 void ribbonButtonQuit_Click(Nevron.Nov.Dom.NEventArgs arg)
 {
     Application.Exit();
 }
Beispiel #5
0
 void ribbonButtonChannel_Click(Nevron.Nov.Dom.NEventArgs arg)
 {
     string newChannel = Microsoft.VisualBasic.Interaction.InputBox("Nom du nouveau channel: ", "Dagobar", Properties.Settings.Default.BotOwner).ToLower(); //@TODO: Make a custom input box
     if (newChannel == String.Empty) return; // Ask for a new channel and check if it is not empty
     Core.Bot.I.ChangeChannel(newChannel); // Set the new channel
     Properties.Settings.Default.BotChannel = newChannel; // Change it in the settings
     Properties.Settings.Default.Save(); // Save the settings
 }