private void CustomCmdItemCallback(object sender, EventArgs e) { if (!String.IsNullOrEmpty(currentCmd) && !String.IsNullOrEmpty(currentCmdArgs)) { CargoUtil.CallCargoProcess(workingDir => Cargo.Start(workingDir, currentCmdArgs), currentCmd + " " + currentCmdArgs); } }
private void ReleaseItemCallback(object sender, EventArgs e) { CargoUtil.CallCargoProcess(workingDir => Cargo.Release(workingDir), "release"); }
private void BenchItemCallback(object sender, EventArgs e) { CargoUtil.CallCargoProcess(workingDir => Cargo.Bench(workingDir), "bench"); }
private void TestItemCallback(object sender, EventArgs e) { CargoUtil.CallCargoProcess(workingDir => Cargo.Test(workingDir), "test"); }
private void UpdateItemCallback(object sender, EventArgs e) { CargoUtil.CallCargoProcess(workingDir => Cargo.Update(workingDir), "update"); }
private void BuildItemCallback(object sender, EventArgs e) { CargoUtil.CallCargoProcess(workingDir => Cargo.Build(workingDir), "build"); }
/// <summary> /// This function is the callback used to execute a command when the a menu item is clicked. /// See the Initialize method to see how the menu item is associated to this function using /// the OleMenuCommandService service and the MenuCommand class. /// </summary> private void RunItemCallback(object sender, EventArgs e) { CargoUtil.CallCargoProcess(workingDir => Cargo.Run(workingDir), "run"); }