コード例 #1
0
ファイル: MainForm.cs プロジェクト: r00tKiller/Dagobar
        public MainForm()
        {
            InitializeComponent();

            Controls.Clear();
            Controls.Add(controlMain);

            // Bind events
            Core.Bot.I.OnMessageReceived += I_OnMessageReceived;
            Core.Bot.I.OnChannelChanged += I_OnChannelChanged;
            Core.TwitchAPI.I.OnFetched += I_OnFetched;

            // Define channel labels
            labelRibbonChannel.Text = "Chaîne : " + Core.Bot.I.CurrentChannel;
            labelChannel.Text = Core.Bot.I.CurrentChannel;

            // Define Plugins list
            listBoxPlugins.Items.Clear();

            foreach (string plugin in Core.Bot.I.LoadedPlugins)
            {
                NPluginCheckBox checkBox = new NPluginCheckBox(plugin);
                listBoxPlugins.Items.Add(new NListBoxItem(checkBox.GetCheckBox()));
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: Ekays/Dagobar
        public MainForm()
        {
            InitializeComponent();

            Controls.Clear();
            Controls.Add(controlMain);

            // Bind events
            Core.Bot.I.OnMessageReceived += I_OnMessageReceived;
            Core.Bot.I.OnChannelChanged  += I_OnChannelChanged;
            Core.TwitchAPI.I.OnFetched   += I_OnFetched;

            // Define channel labels
            labelRibbonChannel.Text = "Chaîne : " + Core.Bot.I.CurrentChannel;
            labelChannel.Text       = Core.Bot.I.CurrentChannel;

            // Define Plugins list
            listBoxPlugins.Items.Clear();

            foreach (string plugin in Core.Bot.I.LoadedPlugins)
            {
                NPluginCheckBox checkBox = new NPluginCheckBox(plugin);
                listBoxPlugins.Items.Add(new NListBoxItem(checkBox.GetCheckBox()));
            }
        }