equal
deleted
inserted
replaced
35 |
35 |
36 #region Actions |
36 #region Actions |
37 |
37 |
38 private void SurfaceButtonSubmit_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
38 private void SurfaceButtonSubmit_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
39 { |
39 { |
40 Cutting = new Cutting(ST_CuttingName.Text.Trim(), new List<Annotation>()); |
40 Cutting = new Cutting("c_" + System.Guid.NewGuid(), ST_CuttingName.Text.Trim(), new List<Annotation>()); |
41 if (EH_NewCuttingForm_ContactDown != null) |
41 if (EH_NewCuttingForm_ContactDown != null) |
42 EH_NewCuttingForm_ContactDown(this, new EventArgs()); |
42 EH_NewCuttingForm_ContactDown(this, new EventArgs()); |
43 } |
43 } |
44 |
44 |
45 private void SurfaceButtonSubmit_Click(object sender, RoutedEventArgs e) |
45 private void SurfaceButtonSubmit_Click(object sender, RoutedEventArgs e) |
46 { |
46 { |
47 Cutting = new Cutting(ST_CuttingName.Text.Trim(), new List<Annotation>()); |
47 Cutting = new Cutting("c _" + System.Guid.NewGuid(), ST_CuttingName.Text.Trim(), new List<Annotation>()); |
48 if (EH_NewCuttingForm_ContactDown != null) |
48 if (EH_NewCuttingForm_ContactDown != null) |
49 EH_NewCuttingForm_ContactDown(this, new EventArgs()); |
49 EH_NewCuttingForm_ContactDown(this, new EventArgs()); |
50 } |
50 } |
51 |
51 |
52 #endregion |
52 #endregion |
53 } |
53 } |
54 } |
54 } |