0
計算された値の単位に応じて変化するテキストボックスに単位を生成しようとしています。私は私がそれらを定義する場合それはだかどうか、テキストボックスに一緒に文字値を結合するかどうかはわかりません、または私はCalculate_button_MouseClick
イベントチャンク定数をテキストボックスにグループ化する
`public const char N = (char)78;
public const char per = (char)47;
public const char m = (char)77;
public const char squared = (char)50;
public const char cubed = (char)51;
public const char k = (char)75;
public const char g = (char)71;
public const char J = (char)74;
public const char s = (char)83;`
`private void Calculate_button_MouseClick(object sender, MouseEventArgs e)
{
switch (Radio)
{
case 1:
textUnit.Text = (N + per + m + squared).ToString;
}
break;
}
ちょうど 'textUnit.Text = N.ToString()+ +あたりのM +は、乗ん;' – itsme86
パーフェクト本当にありがとうございました! –