private void copyWhereClause_Click(object sender, EventArgs e) { if (IsRunningOSX) { OSXClipboard.CopyToClipboard(whereClause.Text); } else { Clipboard.SetText(whereClause.Text); } }
private void copyTables_Click(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); foreach (ListViewItem i in tableList.Items) { sb.AppendLine(((DMSTable)i.Tag).Name); } if (IsRunningOSX) { OSXClipboard.CopyToClipboard(sb.ToString()); } else { Clipboard.SetText(sb.ToString()); } }
private void button1_Click(object sender, EventArgs e) { if (tableRow != null) { //TODO: Test this tableRow.ChangeValue(colIndex, textBox1.Text.Replace("\r\n", "\n")); viewerForm.RedrawTable(); this.Close(); } if (IsRunningOSX) { OSXClipboard.CopyToClipboard(textBox1.Text); } else { Clipboard.SetText(textBox1.Text); } }