Exemplo n.º 1
0
 private Sprite isLicence(UssageLicense tex)
 {
     if (tex == UssageLicense.Allow)
     {
         return(maru);
     }
     else
     {
         return(batu);
     }
 }
Exemplo n.º 2
0
 string ColorizeVrmUsageLicense(UssageLicense license)
 {
     if (license == UssageLicense.Allow)
     {
         return("Allow");
     }
     else
     {
         return("<color=red>Disallow</color>");
     }
 }
Exemplo n.º 3
0
 private void SetUssageLabel(UssageLicense ussage, Label iconLabel, Label label)
 {
     if (ussage == UssageLicense.Disallow)
     {
         iconLabel.Text      = "×";
         iconLabel.ForeColor = Color.Red;
         label.Text          = "不許可";
     }
     else if (ussage == UssageLicense.Allow)
     {
         iconLabel.Text      = "○";
         iconLabel.ForeColor = Color.Green;
         label.Text          = "許可";
     }
     else
     {
         iconLabel.Text      = "?";
         iconLabel.ForeColor = Color.Black;
         label.Text          = "不明な値です";
     }
 }