private void PackageToolStripDropDownButton_ButtonClick(object sender, EventArgs e) { if (mWorkspace.GetLocalPackagingStatus() == MOG_ControllerSyncData.PackageState.PackageState_Pending) { mWorkspace.BuildPackage(); } }
static public bool ShutdownEditor(string workspaceDirectory) { // Get this workspace given the specified workspaceDirectory MOG_ControllerSyncData workspace = GetWorkspace(workspaceDirectory); if (workspace != null) { // Check if we were in the middle of a package merge? if (workspace.GetLocalPackagingStatus() == MOG_ControllerSyncData.PackageState.PackageState_Busy) { // Close the merge progress dialog workspace.EndPackaging(); } return(true); } return(false); }