コード例 #1
0
 public UploadELNGPictureCommand()
 {
     if (_commandObject == null)
     {
         _commandObject = this;
     }
 }
コード例 #2
0
        /// <summary>
        /// 执行命令。
        /// </summary>
        public override void Run()
        {
            UploadPictureConfigDialog dlg = new UploadPictureConfigDialog("ELNG");

            if (DialogResult.OK == dlg.ShowDialog())
            {
                if (UploadELNGPictureCommand.CommandObject == null)
                {
                    UploadELNGPictureCommand cmd = new UploadELNGPictureCommand();
                    cmd.Run();
                }
                else
                {
                    UploadELNGPictureCommand.CommandObject.Run();
                }
            }
            dlg.Dispose();
            dlg = null;
        }