TaskTemplate.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using DevExpress.Utils.About;
  2. using DW5S.Entity;
  3. using DW5S.Repostory;
  4. using DW5S.Service;
  5. using DW5S.ViewModel;
  6. using ExtensionsDev;
  7. using Serilog;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.ComponentModel;
  11. using System.Data;
  12. using System.Drawing;
  13. using System.Linq;
  14. using System.Text;
  15. using System.Threading.Tasks;
  16. using System.Windows.Forms;
  17. namespace DW5S.App.EditForms
  18. {
  19. public partial class TaskTemplate : DevExpress.XtraEditors.XtraForm
  20. {
  21. public int SelectedTemplate { get; set; }
  22. public TaskTemplate()
  23. {
  24. InitializeComponent();
  25. this.layoutControl1.UseDefault();
  26. this.StartPosition = FormStartPosition.CenterParent;
  27. }
  28. private async void CdbEditor_Load(object sender, EventArgs e)
  29. {
  30. }
  31. private void btnOk_Click(object sender, EventArgs e)
  32. {
  33. SelectedTemplate = this.radioGroup1.SelectedIndex;
  34. this.DialogResult = DialogResult.OK;
  35. }
  36. private void btnCancle_Click(object sender, EventArgs e)
  37. {
  38. this.DialogResult = DialogResult.Cancel;
  39. }
  40. }
  41. }