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; }
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); }
public void setSmoothingTool() { currentTool = TOOL.SMOOTHTOOL1; handController.toolModel = toolModels[2]; Debug.Log("Smoothing Tool Selected"); handController.destroyCurrentTools(); }
public void setPullTool() { currentTool = TOOL.PULLTOOL1; handController.toolModel = toolModels[1]; Debug.Log("Pull Tool Selected"); handController.destroyCurrentTools(); }
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)); }
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); }
// 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; }
private void Button_Pen_Click(object sender, EventArgs e) { tool = TOOL.PEN; }
private void button2_Click(object sender, EventArgs e) { tool = TOOL.RECTANGLE; }
private void Button_Erase_Click(object sender, EventArgs e) { Pencil = new Pen(Color.White, size); tool = TOOL.PEN; }
private void Button_Fill_Click(object sender, EventArgs e) { tool = TOOL.FILL; }
private void Button_Line_Click(object sender, EventArgs e) { tool = TOOL.LINE; }
private void Button_Rectangle_Click(object sender, EventArgs e) { tool = TOOL.RECTANGLE; }
private void Button_Ellipse_Click(object sender, EventArgs e) { tool = TOOL.ELLIPSE; }
// Use this for initialization void Start() { m_leapController = handController.GetLeapController(); currentTool = TOOL.PUSH_TOOL; }
public void setSmoothingTool() { currentTool = TOOL.SMOOTH_TOOL; handController.toolModel = toolModels[2]; //Debug.Log("Smoothing Tool Selected"); }
public void setPullTool() { currentTool = TOOL.PULL_TOOL; handController.toolModel = toolModels[1]; //Debug.Log("Pull Tool Selected"); }