Beispiel #1
0
 public MainForm(ImageEditRequest request, Action <Image> action)
 {
     InitializeComponent();
     //加载当前数据
     this.LoadData(request, action);
 }
Beispiel #2
0
 /// <summary>
 /// 初始化数据
 /// </summary>
 private void LoadData(ImageEditRequest request, Action <Image> action)
 {
     this.Request = request;
     this.Action  = action;
 }
        public static void ShowEditForm(ImageEditRequest request, Action <Image> action)
        {
            var mainForm = new MainForm(request, action);

            mainForm.ShowDialog();
        }