private void AddNewSprint() { AddSprint add_sprint = new AddSprint(); add_sprint.ShowDialog(); if (add_sprint.genSprint != null) { current_sprint = add_sprint.genSprint; refreshSprintInfo(); sprint_path_file = Directory.GetCurrentDirectory().ToString() + "\\" + current_sprint.sprint_name + ".json"; sbar_main_message.Text = "Sprint Added Successfully"; } }
private void addnew_Click(object sender, RoutedEventArgs e) { AddSprint addn = new AddSprint(); addn.ShowDialog(); if (addn.genSprint != null) { newSprint = addn.genSprint; Close(); } else { this.Close(); } }