Ejemplo n.º 1
0
 public static string GetToolString(TOOL tool)
 {
     var compilerToolVersion = string.Empty;
     switch (tool)
     {
         case TOOL.GCC:
             compilerToolVersion = "GCC";
             break;
         case TOOL.GCC_OP:
             compilerToolVersion = "GCCOP";
             break;
         case TOOL.MDK:
             compilerToolVersion = "MDK";
             break;
         case TOOL.RVDS:
             compilerToolVersion = "RVDS";
             break;
         case TOOL.SHC:
             compilerToolVersion = "SHC";
             break;
         case TOOL.VS:
             compilerToolVersion = "VS";
             break;
     }
     return compilerToolVersion;
 }
Ejemplo n.º 2
0
        public static string GetToolString(TOOL tool)
        {
            var compilerToolVersion = string.Empty;

            switch (tool)
            {
            case TOOL.GCC:
                compilerToolVersion = "GCC";
                break;

            case TOOL.GCC_OP:
                compilerToolVersion = "GCCOP";
                break;

            case TOOL.MDK:
                compilerToolVersion = "MDK";
                break;

            case TOOL.RVDS:
                compilerToolVersion = "RVDS";
                break;

            case TOOL.SHC:
                compilerToolVersion = "SHC";
                break;

            case TOOL.VS:
                compilerToolVersion = "VS";
                break;
            }
            return(compilerToolVersion);
        }
Ejemplo n.º 3
0
 public void setSmoothingTool()
 {
     currentTool = TOOL.SMOOTHTOOL1;
     handController.toolModel = toolModels[2];
     Debug.Log("Smoothing Tool Selected");
     handController.destroyCurrentTools();
 }
Ejemplo n.º 4
0
 public void setPullTool()
 {
     currentTool = TOOL.PULLTOOL1;
     handController.toolModel = toolModels[1];
     Debug.Log("Pull Tool Selected");
     handController.destroyCurrentTools();
 }
Ejemplo n.º 5
0
        public ActionResult AddTool(ToolModelView model)
        {
            if (ModelState.IsValid)
            {
                var tool = new TOOL()
                {
                    GUIDID         = Guid.NewGuid(),
                    Name           = model.Name,
                    UnitCost       = model.UnitCost,
                    Unit           = model.Unit,
                    Type           = model.Type,
                    CreationDate   = DateTime.Now,
                    CreatedBy      = User.Identity.Name,
                    LastModifiedBy = User.Identity.Name
                };

                try
                {
                    db.TOOLs.Add(tool);
                    db.SaveChanges();
                }
                catch (Exception ex)
                {
                    return(View("Error", new HandleErrorInfo(ex, "Jobs", "Index")));
                }

                return(RedirectToAction("Index"));
            }
            // Something failed, return
            return(View(model));
        }
Ejemplo n.º 6
0
 public Form1()
 {
     InitializeComponent();
     tool = TOOL.PEN;
     bmp  = new Bitmap(pictureBox1.Width, pictureBox1.Height);
     pictureBox1.Image = bmp;
     g     = Graphics.FromImage(bmp);
     queue = new Queue <Point>();
     g.Clear(Color.White);
 }
Ejemplo n.º 7
0
    // Use this for initialization
    void Start()
    {
        DebugdrawLine = false;
        //m_leapController = new Controller();
        m_leapController = handController.GetLeapController();
        // initiate the Spline
        spline = new Spline(ClayRadius, ClayHeight, ClayResolution, ClayVariance);

        // generate initial clay-object
        latheController.init(spline.getSplineList());
        currentTool = TOOL.PUSHTOOL1;
    }
Ejemplo n.º 8
0
 private void Button_Pen_Click(object sender, EventArgs e)
 {
     tool = TOOL.PEN;
 }
Ejemplo n.º 9
0
 private void button2_Click(object sender, EventArgs e)
 {
     tool = TOOL.RECTANGLE;
 }
Ejemplo n.º 10
0
 private void Button_Erase_Click(object sender, EventArgs e)
 {
     Pencil = new Pen(Color.White, size);
     tool   = TOOL.PEN;
 }
Ejemplo n.º 11
0
 private void Button_Fill_Click(object sender, EventArgs e)
 {
     tool = TOOL.FILL;
 }
Ejemplo n.º 12
0
 private void Button_Line_Click(object sender, EventArgs e)
 {
     tool = TOOL.LINE;
 }
Ejemplo n.º 13
0
 private void Button_Rectangle_Click(object sender, EventArgs e)
 {
     tool = TOOL.RECTANGLE;
 }
Ejemplo n.º 14
0
 private void Button_Ellipse_Click(object sender, EventArgs e)
 {
     tool = TOOL.ELLIPSE;
 }
Ejemplo n.º 15
0
    // Use this for initialization
    void Start()
    {
        m_leapController = handController.GetLeapController();

        currentTool = TOOL.PUSH_TOOL;
    }
Ejemplo n.º 16
0
 public void setSmoothingTool()
 {
     currentTool = TOOL.SMOOTH_TOOL;
     handController.toolModel = toolModels[2];
     //Debug.Log("Smoothing Tool Selected");
 }
Ejemplo n.º 17
0
 public void setPullTool()
 {
     currentTool = TOOL.PULL_TOOL;
     handController.toolModel = toolModels[1];
     //Debug.Log("Pull Tool Selected");
 }