Skip to content

Commit

Permalink
Added Formatting to Column
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Aug 29, 2021
1 parent 16b7b04 commit 461a127
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 5 deletions.
70 changes: 65 additions & 5 deletions XRMTokensRun/GetAttribute.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions XRMTokensRun/GetAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ private string GetResult()
{
result += "|<value>";
}
if (!string.IsNullOrEmpty(cmbFormat.Text))
{
if (!chkValue.Checked)
{
result += "|";
}
result += "<" + cmbFormat.Text + "|";
result += txtFormValue.Text + ">";
}
result += "}";
return result;
}
Expand Down Expand Up @@ -116,5 +125,17 @@ private void ShowResult(object sender = null, System.EventArgs e = null)
{
txtResult.Text = GetResult();
}

private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://jonasr.app/xrm-tokens/#formatting");
}

private void cmbFormat_SelectedIndexChanged(object sender, System.EventArgs e)
{
txtFormValue.Enabled = !string.IsNullOrEmpty(cmbFormat.Text);
txtFormValue.Text = "";
ShowResult();
}
}
}

0 comments on commit 461a127

Please sign in to comment.