public UploadELNGPictureCommand() { if (_commandObject == null) { _commandObject = this; } }
/// <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; }