冰楓論壇

標題: C#小弟需要一位能翻譯的 [打印本頁]

作者: 小梁先生    時間: 2012-7-25 14:14
標題: C#小弟需要一位能翻譯的
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;

  8. namespace FuzzyLogicUI
  9. {
  10.     public partial class Form1 : Form
  11.     {
  12.         public Form1()
  13.         {
  14.             InitializeComponent();
  15.         }

  16.         private void Form1_Load(object sender, EventArgs e)
  17.         {
  18.             if (FuzzyApp.InputVariables.Count > 0)
  19.             {
  20.                 variable1.Current = FuzzyApp.InputVariables[0];
  21.                 variable1.Populate();
  22.                 populateVariables();
  23.             }
  24.             reloadStrip();
  25.             configurationUI1.loadData();
  26.         }

  27.         private void reloadStrip()
  28.         {
  29.             toolStripStatusLabel1.Text = "Inputs : " + FuzzyApp.InputVariables.Count.ToString();
  30.             toolStripStatusLabel2.Text = "Outputs : " + FuzzyApp.OutputVariables.Count.ToString();
  31.             toolStripStatusLabel3.Text = "Rules : " + FuzzyApp.Rules.Count.ToString();
  32.         }

  33.         private void populateVariables()
  34.         {
  35.             for (int i = 0; i < FuzzyApp.InputVariables.Count; i++)
  36.             {
  37.                 if (InputView.Items.ContainsKey(FuzzyApp.InputVariables[i].Name) == false)
  38.                 {
  39.                     InputView.Items.Add(FuzzyApp.InputVariables[i].Name, FuzzyApp.InputVariables[i].Name, 1);
  40.                 }
  41.             }

  42.             for (int i = 0; i < FuzzyApp.OutputVariables.Count; i++)
  43.             {
  44.                 if (OutputView.Items.ContainsKey(FuzzyApp.OutputVariables[i].Name) == false)
  45.                 {
  46.                     OutputView.Items.Add(FuzzyApp.OutputVariables[i].Name, FuzzyApp.OutputVariables[i].Name, 1);
  47.                 }
  48.             }
  49.         }

  50.         private void AddVariable_Click(object sender, EventArgs e)
  51.         {
  52.             NewVariable var = new NewVariable();
  53.             var.ParentTab = InOutTabs;
  54.             var.ShowDialog();
  55.             populateVariables();
  56.         }

  57.         private void InputView_SelectedIndexChanged(object sender, EventArgs e)
  58.         {
  59.             if (InputView.SelectedIndices.Count > 0)
  60.             {
  61.                 int index = InputView.SelectedIndices[0];
  62.                 variable1.ClearVariable();
  63.                 variable1.Current = FuzzyApp.InputVariables[index];
  64.                 variable1.Populate();
  65.             }
  66.         }

  67.         private void OutputView_SelectedIndexChanged(object sender, EventArgs e)
  68.         {
  69.             if (OutputView.SelectedIndices.Count > 0)
  70.             {
  71.                 int index = OutputView.SelectedIndices[0];
  72.                 variable1.ClearVariable();
  73.                 variable1.Current = FuzzyApp.OutputVariables[index];
  74.                 variable1.Populate();
  75.             }
  76.         }

  77.         private void MainPanel_SelectedIndexChanged(object sender, EventArgs e)
  78.         {
  79.             if (MainPanel.SelectedTab.Text.Equals("Rules"))
  80.             {
  81.                 rule1.loadVariables();
  82.                 rule1.loadRules();
  83.             }
複製代碼
以上是程式碼

我需要的是好比說像開始頭是定義所需的指示詞為那些蛙歌=ˇ=++

然而簡單來講就是能解釋這個程式碼裡頭的東西XD

麻煩各位大大=ˋ=
作者: xxx55821    時間: 2012-7-25 16:51
跨謀......這是小弟範圍以外的領域了= =
作者: 小梁先生    時間: 2012-7-25 16:52
哈哈  我對裡面的涵數有看沒有懂 快哭了我
作者: 931053    時間: 2012-10-20 23:47
個人建議你去買本C#的書來重頭慢慢看會比較好

難就難在回答者不一定想一行一行慢慢看這什麼鬼XD
作者: 球球菏泡泡    時間: 2012-10-26 19:08
提示: 作者被禁止或刪除 內容自動屏蔽
作者: 小梁先生    時間: 2012-10-31 17:47
沒關係=  =  我已經暫時先搞出來了 @"@  只是現在要開始搞JAVA= =




歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓