Exemplo n.º 1
0
 public UploadIVPictureCommand()
 {
     if (_commandObject == null)
     {
         _commandObject = this;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 执行命令。
        /// </summary>
        public override void Run()
        {
            UploadPictureConfigDialog dlg = new UploadPictureConfigDialog("IV");

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