コード例 #1
0
        private void siticoneButton7_Click(object sender, EventArgs e)
        {
            status.Text      = ("Status: Started");
            status.ForeColor = System.Drawing.Color.Green;
            this.handlers    = default(DiscordRpc.EventHandlers);
            DiscordRpc.Initialize(app_id.Text, ref this.handlers, true, null);
            this.handlers = default(DiscordRpc.EventHandlers);
            DiscordRpc.Initialize(app_id.Text, ref this.handlers, true, null);
            this.presence.details        = text1.Text;
            this.presence.state          = text2.Text;
            this.presence.largeImageKey  = logoname.Text;
            this.presence.smallImageKey  = smalllogoname.Text;
            this.presence.largeImageText = imagetext.Text;
            DiscordRpc.UpdatePresence(ref this.presence);
            startbtn.Text                  = ("Update");
            lastid.Default.id_1            = app_id.Text;
            lastid.Default.text1_1         = text1.Text;
            lastid.Default.text2_1         = text2.Text;
            lastid.Default.logoname_1      = logoname.Text;
            lastid.Default.smalllogoname_1 = smalllogoname.Text;
            lastid.Default.imagetext_1     = imagetext.Text;
            lastid.Default.presetname_1    = presetname.Text;
            lastid.Default.Save();

            if (app_id.Text == "debug")
            {
                debugmenu debugmenu = new debugmenu();
                debugmenu.Show();
                status.Text      = ("Status: Debug Started");
                status.ForeColor = System.Drawing.Color.Orange;
            }
            if (app_id.Text == "DEBUG")
            {
                debugmenu debugmenu = new debugmenu();
                debugmenu.Show();
                status.Text      = ("Status: Debug Started");
                status.ForeColor = System.Drawing.Color.Orange;
            }
            if (app_id.Text == "Debug")
            {
                debugmenu debugmenu = new debugmenu();
                debugmenu.Show();
                status.Text      = ("Status: Debug Started");
                status.ForeColor = System.Drawing.Color.Orange;
            }
            if (app_id.Text == "p33tui.transparent")
            {
                ;
            }
            {
            }
        }
コード例 #2
0
        private void siticoneButton4_Click(object sender, EventArgs e)
        {
            debugmenu debugmenu = new debugmenu();

            debugmenu.Show();
        }