Пример #1
0
 private void CustomCmdItemCallback(object sender, EventArgs e)
 {
     if (!String.IsNullOrEmpty(currentCmd) && !String.IsNullOrEmpty(currentCmdArgs))
     {
         CargoUtil.CallCargoProcess(workingDir => Cargo.Start(workingDir, currentCmdArgs), currentCmd + " " + currentCmdArgs);
     }
 }
Пример #2
0
 private void ReleaseItemCallback(object sender, EventArgs e)
 {
     CargoUtil.CallCargoProcess(workingDir => Cargo.Release(workingDir), "release");
 }
Пример #3
0
 private void BenchItemCallback(object sender, EventArgs e)
 {
     CargoUtil.CallCargoProcess(workingDir => Cargo.Bench(workingDir), "bench");
 }
Пример #4
0
 private void TestItemCallback(object sender, EventArgs e)
 {
     CargoUtil.CallCargoProcess(workingDir => Cargo.Test(workingDir), "test");
 }
Пример #5
0
 private void UpdateItemCallback(object sender, EventArgs e)
 {
     CargoUtil.CallCargoProcess(workingDir => Cargo.Update(workingDir), "update");
 }
Пример #6
0
 private void BuildItemCallback(object sender, EventArgs e)
 {
     CargoUtil.CallCargoProcess(workingDir => Cargo.Build(workingDir), "build");
 }
Пример #7
0
 /// <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");
 }