Exemplo n.º 1
0
        private void getSprintDateDetails()
        {
            Sprint selectedsprint = new Sprint();

            using (StreamReader r = new StreamReader(selected))
            {
                string json = r.ReadToEnd();
                selectedsprint = JsonConvert.DeserializeObject <Sprint>(json);
            }
            sstart.Content = "Start date: " + selectedsprint.start_date;
            send.Content   = "End Date : " + selectedsprint.end_date;
        }
Exemplo n.º 2
0
        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";
            }
        }
Exemplo n.º 3
0
 private void button4_Click(object sender, RoutedEventArgs e)
 {
     using (StreamReader r = new StreamReader("tasks.json"))
     {
         string json = r.ReadToEnd();
         current_sprint = JsonConvert.DeserializeObject <Sprint>(json);
     }
     refreshSprintInfo();
     if (current_sprint.task_list != null)
     {
         TreeRefresh();
     }
 }
Exemplo n.º 4
0
 private void LoadSprintData(string sprint_path_file)
 {
     using (StreamReader r = new StreamReader(sprint_path_file))
     {
         string json = r.ReadToEnd();
         current_sprint = JsonConvert.DeserializeObject <Sprint>(json);
     }
     refreshSprintInfo();
     sbar_main_message.Text = "Sprint " + current_sprint.sprint_name + " loaded";
     if (current_sprint.task_list != null)
     {
         TreeRefresh();
     }
 }
Exemplo n.º 5
0
        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();
            }
        }
Exemplo n.º 6
0
 private void add_sp_Click(object sender, RoutedEventArgs e)
 {
     genSprint = new Sprint(start_date_field, end_date_field, sp_no);
     Close();
 }