public static void ShowFocus() { if (backlog) { backlog.Focus(); } UScrum.RefreshSprintList(); }
/// <summary> /// Create an id and saves his sprint to data. /// </summary> public void Create() { CheckId(); string assetPathAndName = AssetDatabase.GenerateUniqueAssetPath(string.Format("{0}/{1}.asset", UScrum.SPRINT_PATH, id)); AssetDatabase.CreateAsset(this, assetPathAndName); AssetDatabase.SaveAssets(); UScrum.Log(string.Format("Created Sprint '{0}' with id of '{1}'.", title, id)); }
private void DrawCreateButton() { if (GUILayout.Button(Environment.NewLine + "Create" + Environment.NewLine)) { newSprint.Create(); UScrum.RefreshSprintList(); BoardWindow.ShowFocus(newSprint); Close(); } }
private void AddIssueToBacklog() { // Do this in a Task.Create(); Debug.Assert(newTask); string assetPathAndName = AssetDatabase.GenerateUniqueAssetPath(UScrum.TASK_PATH + "/Task.asset"); AssetDatabase.CreateAsset(newTask, assetPathAndName); AssetDatabase.SaveAssets(); UScrum.RefreshTaskList(); }
public static void ShowEditor() { backlog = (BacklogWindow)EditorWindow.GetWindow((typeof(BacklogWindow)), false, "Backlog"); UScrum.RefreshSprintList(); }