예제 #1
0
        // save functional FI info
        private void btn_save_Click(object sender, EventArgs e)
        {
            FunctionalInterface fs = new FunctionalInterface();

            fs.id   = Convert.ToInt32(txtbox_ID.Text);
            fs.name = txtbox_Name.Text;
            fs.type = (FIType)combo_FSType.SelectedIndex;

            /*for (int i = 0; i < listBox_Functions.Items.Count; i++)
             * {
             *  fs.functionList.Add(listBox_Functions.Items[i].ToString());
             * }*/
            fs.functionList = listBox_Functions.Items.OfType <string>().ToList();
            fs.partId       = PartID;
            // Add fs.surfaceList
            FIList.Add(fs);

            //
        }
예제 #2
0
 private void DisplayFS(FunctionalInterface fs)
 {
     txtbox_ID.Text   = fs.id.ToString();
     txtbox_Name.Text = fs.name;
     if (fs.surfaceList.Count != 0)
     {
         txtBox_flag.Text = "True";
     }
     else
     {
         txtBox_flag.Text = "False";
     }
     listBox_Functions.Items.Clear();
     combo_FSType.SelectedIndex = (int)fs.type;
     for (int i = 0; i < fs.functionList.Count; i++)
     {
         listBox_Functions.Items.Add(fs.functionList[i]);
     }
     return;
 }
예제 #3
0
 // this method to take graphics and load into this camera "c"
 public static void Render(FunctionalInterface i, UnityEngine.Camera c)
 {
     // get graphics, load in screen, maths
 }
예제 #4
0
 public void AddInterface(FunctionalInterface i)
 {
     _interfaces.Add(i);
 }