public static List<note_node> Calculate_DT_Costs(List<note_node> DTArray, Main_Form parentForm)
        {
            try
            {
                List<note_node> New_DT = new List<note_node>();
                int intlastCount = 0;
                //Logging.Open_Dlg();
                Logging.Update_Status("Starting Cost calulation");
                Logging.Update_Status("Total DT Count:" + DTArray.Count.ToString());
                foreach (note_node temp_node in DTArray)
                {
                   // Logging.Update_Status("Current Note" + temp_node.ToString());
                    note_node temp_note;
                    var result = Task.Run(() => get_note_cost(temp_node, DTArray));
                    temp_note = result.Result;
                    New_DT.Add(temp_note);

                    if (New_DT.Count > intlastCount + 10000)
                    {
                        intlastCount = New_DT.Count;
                        Logging.Update_Status("Current DT" + intlastCount.ToString());
                    };

                };
                return New_DT;
            }
            catch(Exception e)
            {
                MessageBox.Show(e.ToString());
                return null;
            }
        }
 public Main_Form()
 {
     InitializeComponent();
     Self = this;
 }