Exemple #1
0
 private void button4_Click(object sender, EventArgs e) {
     try {
         topping = MrTaka.toppingMake(textBox1.Text);
         string tx = "【" + j(product.NoodleVolume) + "おまたせ!】\n"
             + "ニンニク:" + j(topping.garlic) + "\n"
             + "アブラ:" + j(topping.oil) + "\n"
             + "ヤサイ:" + j(topping.vegetable) + "\n"
             + "カラメ:" + j(topping.sauce);
         label3.Text = tx;
     } catch(Exception exc) {
         var error = exc.ToString().Split(':','パ');
         label2.Text = error[1];
     }
 }
Exemple #2
0
 private string j(Topping.Volume v) {
     switch(v) {
         case Topping.Volume.CHOMOLUNGMA:
             return "チョモランマ";
         case Topping.Volume.DEFAULT:
             return "デフォルト";
         case Topping.Volume.MASHI:
             return "マシ";
         case Topping.Volume.MASHIMASHI:
             return "マシマシ";
         case Topping.Volume.NUKI:
             return "抜き";
         case Topping.Volume.SUKUNAME:
             return "スクナメ";
         default:
             return "指定なし";
     }
 }
Exemple #3
0
        public Topping toppingMake(string ClientCall) {
            Topping ret=new Topping(ClientCall);

            return ret;
        }