//------------------------------------------------------------------------- private void copyToClipboardArgStringBtn_Click(object sender, EventArgs e) { try { UpdateArgEnabledStates(); Project prj = (projectCbo.SelectedItem as Project); string filePath = prj.GetCommonValue(fullFilenameTxt.Text, false); string argStr = TemplateShortcutEntry.GetArgumentString(m_args, m_argStates, prj); Clipboard.SetText(filePath + " " + argStr); } catch (Exception ex) { ErrorMsg(ex.Message); } }
//------------------------------------------------------------------------- private void viewArgStringBtn_Click(object sender, EventArgs e) { try { UpdateArgEnabledStates(); Project prj = (projectCbo.SelectedItem as Project); string filePath = prj.GetCommonValue(fullFilenameTxt.Text, false); string argStr = TemplateShortcutEntry.GetArgumentString(m_args, m_argStates, prj); MessageBox.Show(filePath + " " + argStr, "Argument String", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { ErrorMsg(ex.Message); } }