private void NewButton_Click(object sender, EventArgs e) { var button = (sender as Button); string text = button.Tag.ToString(); CopyPasta.PasteToDiscord(text); }
private void NewButton_Click(object sender, EventArgs e) { var button = (sender as Button); string text = button.Tag.ToString().Replace("\\n", Environment.NewLine); CopyPasta.PasteToTarget(text); }
private void LoadWindowPosition() { WindowRect.RECT myRect; var discordWindow = CopyPasta.GetDiscordWindow(); if (discordWindow != null) { WindowRect.GetWindowRect(new HandleRef(this, discordWindow), out myRect); AlignMainWindow(myRect); } if (Settings.Default.MainWindowSize.Height != 0 && Settings.Default.MainWindowSize.Width != 0) { this.Size = Settings.Default.MainWindowSize; } }