Beispiel #1
0
        private async void btn_GetByFC_Click(Nevron.Nov.Dom.NEventArgs arg)
        {
            MainLoadingImage.Visible = true;
            await GenerateFCData();

            RefreshDataTable();
            AppDataStore.SaveStorage();
            MainLoadingImage.Visible = false;
        }
Beispiel #2
0
        private async void AddButton_Click(Nevron.Nov.Dom.NEventArgs arg)
        {
            MainLoadingImage.Visible = true;
            await AddPerson();

            RefreshDataTable();
            AppDataStore.SaveStorage();
            MainLoadingImage.Visible = false;
        }
Beispiel #3
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
     }
 }
Beispiel #4
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
        }
Beispiel #5
0
 void ribbonButtonConfiguration_Click(Nevron.Nov.Dom.NEventArgs arg)
 {
     new SetupForm().Show(); // Show the settings form
     this.Close();           // And close this one
 }
Beispiel #6
0
 void ribbonButtonQuit_Click(Nevron.Nov.Dom.NEventArgs arg)
 {
     Application.Exit();
 }