예제 #1
0
 private void button1_Click(object sender, System.EventArgs e)
 {
     Col c1=new Col(((Lugar)form.scene.element).bas.car.Colores);
     c1.ShowDialog();
     int x=c1.selInd;
     c1.Close();
     form.Focus();
     ((Lugar)form.scene.element).bas.car.ChangeMaterialFrom3ds("body",new MiMetal(((Lugar)form.scene.element).bas.car.Colores[x].r,((Lugar)form.scene.element).bas.car.Colores[x].g,((Lugar)form.scene.element).bas.car.Colores[x].b));
     ((Lugar)form.scene.element).bas.car.Recompile();
     form.Focus();
     form.Refresh();
 }
예제 #2
0
    private void button1_Click(object sender, System.EventArgs e)
    {
        Col c1 = new Col(((Lugar)form.scene.element).bas.car.Colores);

        c1.ShowDialog();
        int x = c1.selInd;

        c1.Close();
        form.Focus();
        ((Lugar)form.scene.element).bas.car.ChangeMaterialFrom3ds("body", new MiMetal(((Lugar)form.scene.element).bas.car.Colores[x].r, ((Lugar)form.scene.element).bas.car.Colores[x].g, ((Lugar)form.scene.element).bas.car.Colores[x].b));
        ((Lugar)form.scene.element).bas.car.Recompile();
        form.Focus();
        form.Refresh();
    }
예제 #3
0
 private void frmServer_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         foreach (ServerJieShou Col in LianJIe)
         {
             Col.th.Abort();
             Col.th.Join();
         }
         foreach (TcpClient Col in arr)
         {
             Col.Close();
         }
     }
     finally
     {
         Application.Exit();
     }
 }