示例#1
0
 private void copyWhereClause_Click(object sender, EventArgs e)
 {
     if (IsRunningOSX)
     {
         OSXClipboard.CopyToClipboard(whereClause.Text);
     }
     else
     {
         Clipboard.SetText(whereClause.Text);
     }
 }
示例#2
0
        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());
            }
        }
示例#3
0
 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);
     }
 }